summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2016-04-06 20:19:31 +0000
committerSean Silva <chisophugis@gmail.com>2016-04-06 20:19:31 +0000
commit3e85ddc011018d055f009f8d549ba15e506bca1f (patch)
tree3442847a3553504583aa717d20f515b01497829e
parentf50422aa440239dd920401804ee5edf39b972616 (diff)
downloadbcm5719-llvm-3e85ddc011018d055f009f8d549ba15e506bca1f.tar.gz
bcm5719-llvm-3e85ddc011018d055f009f8d549ba15e506bca1f.zip
Use `CMAKE_HOST_UNIX` to check the host.
`UNIX` is for the target. llvm-svn: 265595
-rw-r--r--compiler-rt/cmake/Modules/SanitizerUtils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/cmake/Modules/SanitizerUtils.cmake b/compiler-rt/cmake/Modules/SanitizerUtils.cmake
index dca3320bb1a..699be3505b0 100644
--- a/compiler-rt/cmake/Modules/SanitizerUtils.cmake
+++ b/compiler-rt/cmake/Modules/SanitizerUtils.cmake
@@ -84,7 +84,7 @@ macro(add_sanitizer_rt_version_list name)
endmacro()
# Add target to check code style for sanitizer runtimes.
-if(UNIX)
+if(CMAKE_HOST_UNIX)
add_custom_target(SanitizerLintCheck
COMMAND env LLVM_CHECKOUT=${LLVM_MAIN_SRC_DIR} SILENT=1 TMPDIR=
PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
OpenPOWER on IntegriCloud