summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-09-12 01:35:11 +0000
committerVitaly Buka <vitalybuka@google.com>2019-09-12 01:35:11 +0000
commitfe591a604ee75b90c3f628f522cb6928bca7b076 (patch)
tree01da5bb08a9af5f8576b72634f3a3baad90bf449
parent026867a2d6ae2744f4da3216df060db9878e503e (diff)
downloadcompiler-rt-fe591a604ee75b90c3f628f522cb6928bca7b076.tar.gz
[compiler-rt] Run cpplint only for check-sanitizer
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@371703 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CMakeLists.txt3
-rw-r--r--test/sanitizer_common/CMakeLists.txt5
2 files changed, 5 insertions, 3 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 0d9ac5528..02ce6aabd 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -26,9 +26,6 @@ if(NOT ANDROID)
list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS KillTheDoctor)
endif()
endif()
- if(CMAKE_HOST_UNIX)
- list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS SanitizerLintCheck)
- endif()
endif()
function(compiler_rt_test_runtime runtime)
diff --git a/test/sanitizer_common/CMakeLists.txt b/test/sanitizer_common/CMakeLists.txt
index 48fccf058..fcd651ebe 100644
--- a/test/sanitizer_common/CMakeLists.txt
+++ b/test/sanitizer_common/CMakeLists.txt
@@ -1,6 +1,11 @@
set(SANITIZER_COMMON_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(SANITIZER_COMMON_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
+
+if(CMAKE_HOST_UNIX)
+ list(APPEND SANITIZER_COMMON_TEST_DEPS SanitizerLintCheck)
+endif()
+
set(SANITIZER_COMMON_TESTSUITES)
# FIXME(dliew): We should switch to COMPILER_RT_SANITIZERS_TO_BUILD instead of