]> granicus.if.org Git - clang/commitdiff
Add asan/msan to the list of available features in LIT test runner. Mark ASan-unfrien...
authorAlexey Samsonov <samsonov@google.com>
Tue, 26 Mar 2013 08:28:18 +0000 (08:28 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 26 Mar 2013 08:28:18 +0000 (08:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177995 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg
test/lit.site.cfg.in

index f7eb7319b9e93668b4e0d12756228231a214fc5b..b3b20c8c4eefefb55046ccb81ebb6f20c552dc5b 100644 (file)
@@ -294,3 +294,9 @@ if llc_props['enable_assertions']:
 if lit.util.which('xmllint'):
     config.available_features.add('xmllint')
 
+# 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")
index df90b81055f8b6635f8b3a478bcf7a5443cf30f8..23eb8e228cce64f52f046ac01e4ab8667db7bd86 100644 (file)
@@ -7,6 +7,7 @@ config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
 config.clang_obj_root = "@CLANG_BINARY_DIR@"
 config.target_triple = "@TARGET_TRIPLE@"
+config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
 
 # Support substitution of the tools and libs dirs with user parameters. This is
 # used when we can't determine the tool dir at configuration time.