[llvm] r342881 - [dsymutil] Set LSan blacklist whenever sanitizers are enabled.
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 24 06:56:36 PDT 2018
Author: jdevlieghere
Date: Mon Sep 24 06:56:36 2018
New Revision: 342881
URL: http://llvm.org/viewvc/llvm-project?rev=342881&view=rev
Log:
[dsymutil] Set LSan blacklist whenever sanitizers are enabled.
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.
Modified:
llvm/trunk/test/tools/dsymutil/X86/lit.local.cfg
Modified: llvm/trunk/test/tools/dsymutil/X86/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/dsymutil/X86/lit.local.cfg?rev=342881&r1=342880&r2=342881&view=diff
==============================================================================
--- llvm/trunk/test/tools/dsymutil/X86/lit.local.cfg (original)
+++ llvm/trunk/test/tools/dsymutil/X86/lit.local.cfg Mon Sep 24 06:56:36 2018
@@ -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)
More information about the llvm-commits
mailing list