Skip to content

Commit fbd0a2c

Browse files
tbzatekigaw
authored andcommitted
build: Switch default meson buildtype to 'debugoptimized'
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]>
1 parent 553c15e commit fbd0a2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ project(
1313
default_options: [
1414
'c_std=gnu99',
1515
'warning_level=1',
16-
'buildtype=debug',
16+
'buildtype=debugoptimized',
1717
'prefix=/usr/local',
1818
'sysconfdir=etc',
1919
'wrap_mode=nofallback'

0 commit comments

Comments
 (0)