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
This commit is contained in:
Jan Janssen
2022-10-09 22:15:11 +02:00
committed by Luca Boccassi
parent 02380e1946
commit 7aa4762ce2
+1 -1
View 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 (