[dsymutil] Set LSan blacklist whenever sanitizers are enabled.
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 24 Sep 2018 13:56:36 +0000 (13:56 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 24 Sep 2018 13:56:36 +0000 (13:56 +0000)
LSan can be enabled by itself or as part of the address sanitizer.
Rather than checking the enabled sanitizers for both, just set the LSan
env options whenever a sanitizer is enabled.

llvm-svn: 342881

llvm/test/tools/dsymutil/X86/lit.local.cfg

index 4fa6399..7424413 100644 (file)
@@ -3,7 +3,7 @@ import os
 if not 'X86' in config.root.targets:
     config.unsupported = True
 
-if "Leaks" in config.llvm_use_sanitizer:
+if config.llvm_use_sanitizer:
     suppr = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'suppressions.txt')
     config.environment['LSAN_OPTIONS'] = 'suppressions={}'.format(suppr)