forked from OSchip/llvm-project
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
This commit is contained in:
parent
669a33f0ce
commit
9af25704d2
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue