From: Jan Janssen Date: Sun, 9 Oct 2022 15:16:12 +0000 (+0200) Subject: meson: Fix build with --optimization=plain X-Git-Tag: v252-rc2~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7aa4762ce274a1c9a59902b972fa4fdee1b22715;p=thirdparty%2Fsystemd.git meson: Fix build with --optimization=plain Note that -O0 is deliberately filtered out as we have to compile with at least -O1 due to #24202. Fixes: #24323 --- diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index e0cd4ebad99..395386d3eda 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -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 (