]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
build: Switch default meson buildtype to 'debugoptimized'
authorTomas Bzatek <tbzatek@redhat.com>
Wed, 20 Mar 2024 14:03:21 +0000 (15:03 +0100)
committerDaniel Wagner <wagi@monom.org>
Wed, 20 Mar 2024 18:23:31 +0000 (19:23 +0100)
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 <tbzatek@redhat.com>
meson.build

index 5d482787fb58bf1a1fcb497fec609d2b30593370..05efb02453ca9395f6e40eba080d1361de73b951 100644 (file)
@@ -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'