Permalink
Browse files

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
  • Loading branch information...
1 parent 777fccb commit 3fbb8408db28cc25dd398d4261bf69bbbc98f373 Alexey Samsonov committed Mar 26, 2013
Showing with 8 additions and 0 deletions.
  1. +7 −0 test/lit.cfg
  2. +1 −0 test/lit.site.cfg.in
View
@@ -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:
View
@@ -18,6 +18,7 @@ config.llvm_bindings = "@LLVM_BINDINGS@"
config.host_os = "@HOST_OS@"
config.host_arch = "@HOST_ARCH@"
config.llvm_use_intel_jitevents = "@LLVM_USE_INTEL_JITEVENTS@"
+config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
# Support substitution of the tools_dir with user parameters. This is
# used when we can't determine the tool dir at configuration time.

0 comments on commit 3fbb840

Please sign in to comment.