]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Fix build with --optimization=plain
authorJan Janssen <medhefgo@web.de>
Sun, 9 Oct 2022 15:16:12 +0000 (17:16 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 9 Oct 2022 20:15:11 +0000 (22:15 +0200)
Note that -O0 is deliberately filtered out as we have to compile with at
least -O1 due to #24202.

Fixes: #24323
src/boot/efi/meson.build

index e0cd4ebad993490d1c6f219909818ef79a87f064..395386d3eda70a74e1bb08ac8005dac41f371252 100644 (file)
@@ -223,7 +223,7 @@ endif
 if get_option('debug') and get_option('mode') == 'developer'
         efi_cflags += ['-ggdb', '-DEFI_DEBUG']
 endif
-if get_option('optimization') != '0'
+if get_option('optimization') in ['1', '2', '3', 's', 'g']
         efi_cflags += ['-O' + get_option('optimization')]
 endif
 if get_option('b_ndebug') == 'true' or (