aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-11-02 08:56:04 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2018-11-02 23:20:40 +0200
commit8cd7f7871bc99e5ed709d4f0ec54997047f3e335 (patch)
treecf935ce951954fa8cad4733f9543b2e8db4a6a87 /mesonbuild
parentccda5bc5bfeebd2f9665dafc444f1d9aa9edf3c7 (diff)
downloadmeson-8cd7f7871bc99e5ed709d4f0ec54997047f3e335.zip
meson-8cd7f7871bc99e5ed709d4f0ec54997047f3e335.tar.gz
meson-8cd7f7871bc99e5ed709d4f0ec54997047f3e335.tar.bz2
interpreter: Don't warn about clang b_undef and b_sanitizer if sanitizer is none
Since the "none" sanitizer isn't actually a sanitizer at all.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 2b27694..e724e6a 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -3831,7 +3831,8 @@ different subdirectory.
return
if 'b_sanitize' not in self.coredata.base_options:
return
- if self.coredata.base_options['b_lundef'].value:
+ if (self.coredata.base_options['b_lundef'].value and
+ self.coredata.base_options['b_sanitize'].value != 'none'):
mlog.warning('''Trying to use {} sanitizer on Clang with b_lundef.
This will probably not work.
Try setting b_lundef to false instead.'''.format(self.coredata.base_options['b_sanitize'].value))