diff options
author | Filipe Cabecinhas <me@filcab.net> | 2018-06-29 10:34:37 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2018-06-29 10:34:37 +0000 |
commit | 4ef94395b21c0bbbead982afb36db05ed5b12bf8 (patch) | |
tree | a099f4158230afdf0e38a95789d62071035ffe44 /llvm/cmake | |
parent | ce8064f22560c8e176392a0e1e1eb605da7dee5f (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.
Diffstat (limited to 'llvm/cmake')
-rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 62a2cfcf261..2f88f585db2 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/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 () |