]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: Fix logic bug determining whether running with optimization
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 Sep 2023 12:30:48 +0000 (14:30 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 4 Sep 2023 12:30:48 +0000 (14:30 +0200)
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: b68faa99d9f16c2f504b23737040d25d072ee85d
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
meson.build

index e0ee4f2f21c2640f92801d25209b16a9cbe48226..3bf15d93a43c8fec14d5573d1a9b59939606d89f 100644 (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