About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorEric Engestrom <eric@igalia.com>2025-08-21 14:51:44 +0200
committerEric Engestrom <eric@igalia.com>2025-08-21 14:54:19 +0200
commit8ee7b4184189d96e61da5eb16abac9c97e7db3b2 (patch)
treedfa84f6cc2859af1976de5165b0897b9f9ba098d /meson.build
parentca989ecdecce09295d9280587ac876fb65d11a91 (diff)
meson: fixup b_sanitize checks
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36905>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index b03df2879b9..3b483682b31 100644
--- a/meson.build
+++ b/meson.build
@@ -1049,10 +1049,10 @@ if cc.has_function_attribute('visibility:hidden')
endif
_no_sanitize_flags = []
-if ['address', 'address,undefined'].contains(get_option('b_sanitize'))
+if get_option('b_sanitize').split(',').contains('address')
_no_sanitize_flags += ['address']
endif
-if ['undefined', 'address,undefined'].contains(get_option('b_sanitize'))
+if get_option('b_sanitize').split(',').contains('undefined')
_no_sanitize_flags += ['vptr']
endif
foreach flag: _no_sanitize_flags
@@ -1931,7 +1931,7 @@ endif
# AddressSanitizer's leak reports need all the symbols to be present at exit to
# decode well, which runs afoul of our dlopen()/dlclose()ing of the DRI drivers.
# Set a flag so we can skip the dlclose for asan builds.
-if ['address', 'address,undefined'].contains(get_option('b_sanitize'))
+if get_option('b_sanitize').split(',').contains('address')
asan_c_args = ['-DBUILT_WITH_ASAN=1']
else
asan_c_args = ['-DBUILT_WITH_ASAN=0']