Meson should warn if b_lundef is mixed with any sanitizer with clang

Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
This commit is contained in:
Alexis Jeandet 2018-09-01 13:24:59 +02:00 committed by Jussi Pakkanen
parent b2f92ea689
commit 73a5b4332d
1 changed files with 3 additions and 4 deletions

View File

@ -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.
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