]> www.infradead.org Git - users/sagi/libnvme.git/commit
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)
commitfbd0a2cfbc920fa34146756087146f1e6f408b4f
tree528752262f17032cd7f5540ee34697a4f7da589d
parent553c15e0ac3774d8eeb192d7ff3706b4e38945ff
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 <tbzatek@redhat.com>
meson.build