[compiler-rt] r208639 - Restrict the set of sanitizers that should run tests from test/sanitizer_common

Alexey Samsonov samsonov at google.com
Mon May 12 15:48:29 PDT 2014


Author: samsonov
Date: Mon May 12 17:48:29 2014
New Revision: 208639

URL: http://llvm.org/viewvc/llvm-project?rev=208639&view=rev
Log:
Restrict the set of sanitizers that should run tests from test/sanitizer_common

Modified:
    compiler-rt/trunk/test/sanitizer_common/CMakeLists.txt

Modified: compiler-rt/trunk/test/sanitizer_common/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/CMakeLists.txt?rev=208639&r1=208638&r2=208639&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/sanitizer_common/CMakeLists.txt Mon May 12 17:48:29 2014
@@ -3,8 +3,17 @@ set(SANITIZER_COMMON_LIT_SOURCE_DIR ${CM
 set(SANITIZER_COMMON_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
 set(SANITIZER_COMMON_TESTSUITES)
 
+set(SUPPORTED_TOOLS)
+if(CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux|FreeBSD" AND NOT ANDROID)
+  list(APPEND SUPPORTED_TOOLS asan)
+endif()
+if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT ANDROID)
+  list(APPEND SUPPORTED_TOOLS tsan)
+  list(APPEND SUPPORTED_TOOLS msan)
+endif()
+
 # Create a separate config for each tool we support.
-foreach(tool asan tsan msan)
+foreach(tool ${SUPPORTED_TOOLS})
   string(TOUPPER ${tool} tool_toupper)
   if(${tool_toupper}_SUPPORTED_ARCH)
     set(SANITIZER_COMMON_LIT_TEST_MODE ${tool})





More information about the llvm-commits mailing list