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 | 48c9f451aa4deaa6477ccddbecefcc34b20621cd (patch) | |
tree | 2c9d80eb5d05263c604a9c6a1340e699b9c8de92 | |
parent | 88ec2e4ee73a0fc9770f3c7c7de87415eb6bae78 (diff) | |
download | bcm5719-llvm-48c9f451aa4deaa6477ccddbecefcc34b20621cd.tar.gz bcm5719-llvm-48c9f451aa4deaa6477ccddbecefcc34b20621cd.zip |
[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.
llvm-svn: 335961
-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 () |