From 73a5b4332d20dbedad35ec4802c997f0f19ed9bd Mon Sep 17 00:00:00 2001 From: Alexis Jeandet Date: Sat, 1 Sep 2018 13:24:59 +0200 Subject: [PATCH] Meson should warn if b_lundef is mixed with any sanitizer with clang Signed-off-by: Alexis Jeandet --- mesonbuild/interpreter.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index f0ba4a9df..dba3fc0af 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -3818,11 +3818,10 @@ different subdirectory. return if 'b_sanitize' not in self.coredata.base_options: return - if 'address' in self.coredata.base_options['b_sanitize'].value: - if self.coredata.base_options['b_lundef'].value: - mlog.warning('''Trying to use address sanitizer on Clang with b_lundef. + if self.coredata.base_options['b_lundef'].value: + mlog.warning('''Trying to use {} sanitizer on Clang with b_lundef. This will probably not work. -Try setting b_lundef to false instead.''') +Try setting b_lundef to false instead.'''.format(self.coredata.base_options['b_sanitize'].value)) def evaluate_subproject_info(self, path_from_source_root, subproject_dirname): depth = 0