[compiler-rt] Run cpplint only for check-sanitizer
authorVitaly Buka <vitalybuka@google.com>
Thu, 12 Sep 2019 01:35:11 +0000 (01:35 +0000)
committerVitaly Buka <vitalybuka@google.com>
Thu, 12 Sep 2019 01:35:11 +0000 (01:35 +0000)
llvm-svn: 371703

compiler-rt/test/CMakeLists.txt
compiler-rt/test/sanitizer_common/CMakeLists.txt

index 0d9ac55..02ce6aa 100644 (file)
@@ -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)
index 48fccf0..fcd651e 100644 (file)
@@ -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