[cmake] Change WIN32 test to CMAKE_HOST_WIN32
authorFilipe Cabecinhas <me@filcab.net>
Fri, 29 Jun 2018 10:34:37 +0000 (10:34 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 29 Jun 2018 10:34:37 +0000 (10:34 +0000)
commit48c9f451aa4deaa6477ccddbecefcc34b20621cd
tree2c9d80eb5d05263c604a9c6a1340e699b9c8de92
parent88ec2e4ee73a0fc9770f3c7c7de87415eb6bae78
[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
llvm/cmake/modules/AddLLVM.cmake