Skip to content

Commit

Permalink
build: Switch default meson buildtype to 'debugoptimized'
Browse files Browse the repository at this point in the history
The meson 'debug' buildtype defaults to '-O0 -g' which misses
some important compiler warnings (as of gcc-13). While there's
no universal solution, the 'debugoptimized' buildtype supplies
'-O2 -g' that appears to be a reasonable compromise for having
important compiler warnings by default.

Signed-off-by: Tomas Bzatek <[email protected]>
  • Loading branch information
tbzatek committed Mar 20, 2024
1 parent 553c15e commit 01c0aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ project(
default_options: [
'c_std=gnu99',
'warning_level=1',
'buildtype=debug',
'buildtype=debugoptimized',
'prefix=/usr/local',
'sysconfdir=etc',
'wrap_mode=nofallback'
Expand Down

0 comments on commit 01c0aae

Please sign in to comment.