diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-04-06 23:18:09 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-04-06 23:18:09 +0000 |
commit | 9af25704d25c394c4e33828c666dcc656d49ef7c (patch) | |
tree | a1c983d7d751d6c32f70846b3e745c9c25414dd6 /compiler-rt | |
parent | 669a33f0cefbe7a627c6b49e8c153ce52ce28f3f (diff) | |
download | bcm5719-llvm-9af25704d25c394c4e33828c666dcc656d49ef7c.tar.gz bcm5719-llvm-9af25704d25c394c4e33828c666dcc656d49ef7c.zip |
Another place for CMAKE_HOST_UNIX
If we don't create the target, don't try to add it as a dependency.
After r265595, we were only creating the SanitizerLintCheck when
`CMAKE_HOST_UNIX` was true.
CMake was emitting a warning:
The dependency target "SanitizerLintCheck" of target "check-ubsan" does not
exist.
llvm-svn: 265613
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/test/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt index f986ec151b1..18984e525ad 100644 --- a/compiler-rt/test/CMakeLists.txt +++ b/compiler-rt/test/CMakeLists.txt @@ -31,7 +31,7 @@ if(NOT ANDROID) list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS KillTheDoctor) endif() endif() - if(UNIX) + if(CMAKE_HOST_UNIX) list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS SanitizerLintCheck) endif() endif() |