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.
pull/4394/merge
Dylan Baker 6 years ago committed by Jussi Pakkanen
parent ccda5bc5bf
commit 8cd7f7871b
  1. 3
      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))

Loading…
Cancel
Save