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:
committed by
Luca Boccassi
parent
02380e1946
commit
7aa4762ce2
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user