build: Fix logic bug determining whether running with optimization

The conversion from ternary to a 'if' clause was wrong and thus didn't
properly increase the stack size where needed but only where not
actually needed.

Fixes: b68faa99d9
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2023-09-04 14:30:48 +02:00
parent d9c04cdc34
commit c2e6897e54

View File

@ -255,7 +255,7 @@ if cc.get_id() == 'clang' and get_option('optimization') == '0'
endif
# sanitizer instrumentation may enlarge stack frames
if get_option('b_sanitize') == 'none'
if get_option('b_sanitize') != 'none'
stack_frame_size = 32768
endif