diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-05-12 22:48:29 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-05-12 22:48:29 +0000 |
| commit | b51d6081f38e800c234a5f7d9052fc8231ae00d4 (patch) | |
| tree | a7bad2cc4bec802fd481e58bd985de804f20b5ac | |
| parent | b4013235e35523ffda7267ddd768558d426d0b7b (diff) | |
| download | bcm5719-llvm-b51d6081f38e800c234a5f7d9052fc8231ae00d4.tar.gz bcm5719-llvm-b51d6081f38e800c234a5f7d9052fc8231ae00d4.zip | |
Restrict the set of sanitizers that should run tests from test/sanitizer_common
llvm-svn: 208639
| -rw-r--r-- | compiler-rt/test/sanitizer_common/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/compiler-rt/test/sanitizer_common/CMakeLists.txt b/compiler-rt/test/sanitizer_common/CMakeLists.txt index b34dfc1008e..dcb09ca0066 100644 --- a/compiler-rt/test/sanitizer_common/CMakeLists.txt +++ b/compiler-rt/test/sanitizer_common/CMakeLists.txt @@ -3,8 +3,17 @@ set(SANITIZER_COMMON_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) 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}) |

