aboutsummaryrefslogtreecommitdiffstats
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-03-26 08:27:39 +0000
committerAlexey Samsonov <samsonov@google.com>2013-03-26 08:27:39 +0000
commit3fbb8408db28cc25dd398d4261bf69bbbc98f373 (patch)
treeada1aff7711bda407374930a64258d81d2c48272 /test/lit.cfg
parent777fccbe65f23d8a19bde1a8b69776c9a9209476 (diff)
downloadexternal_llvm-3fbb8408db28cc25dd398d4261bf69bbbc98f373.zip
external_llvm-3fbb8408db28cc25dd398d4261bf69bbbc98f373.tar.gz
external_llvm-3fbb8408db28cc25dd398d4261bf69bbbc98f373.tar.bz2
Add asan/msan to the list of available features in LIT test runner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index 8ee2078..ce9ff11 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -256,6 +256,13 @@ if loadable_module:
if config.lto_is_enabled == "1" and platform.system() == "Darwin":
config.available_features.add('lto_on_osx')
+# Sanitizers.
+if config.llvm_use_sanitizer == "Address":
+ config.available_features.add("asan")
+if (config.llvm_use_sanitizer == "Memory" or
+ config.llvm_use_sanitizer == "MemoryWithOrigins"):
+ config.available_features.add("msan")
+
# llc knows whether he is compiled with -DNDEBUG.
import subprocess
try: