[compiler-rt] r265595 - Use `CMAKE_HOST_UNIX` to check the host.
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 13:19:32 PDT 2016
Author: silvas
Date: Wed Apr 6 15:19:31 2016
New Revision: 265595
URL: http://llvm.org/viewvc/llvm-project?rev=265595&view=rev
Log:
Use `CMAKE_HOST_UNIX` to check the host.
`UNIX` is for the target.
Modified:
compiler-rt/trunk/cmake/Modules/SanitizerUtils.cmake
Modified: compiler-rt/trunk/cmake/Modules/SanitizerUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/SanitizerUtils.cmake?rev=265595&r1=265594&r2=265595&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/SanitizerUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/SanitizerUtils.cmake Wed Apr 6 15:19:31 2016
@@ -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}
More information about the llvm-commits
mailing list