summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2018-06-29 10:34:37 +0000
committerFilipe Cabecinhas <me@filcab.net>2018-06-29 10:34:37 +0000
commit886c551da5ca3862345357c3f236d03604b8e773 (patch)
tree7dff967638587750e20520fefe7f483bf83796c4 /cmake
parentab4b844b3e6fb7b05850d82d7e0faba2b3a72647 (diff)
[cmake] Change WIN32 test to CMAKE_HOST_WIN32
The test is about what can be run on the host, not the cmake target. When cross-compiling (compiler-rt at least) on Windows, we end up with lit being unable to run llvm-lit because it can't find the llvm-lit module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 62a2cfcf261..2f88f585db2 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -1283,7 +1283,7 @@ function(get_llvm_lit_path base_dir file_name)
endif()
set(lit_file_name "llvm-lit")
- if (WIN32 AND NOT CYGWIN)
+ if (CMAKE_HOST_WIN32 AND NOT CYGWIN)
# llvm-lit needs suffix.py for multiprocess to find a main module.
set(lit_file_name "${lit_file_name}.py")
endif ()