OSDN Git Service

build: don't attempt to run config.guess on Windows
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 14 Jun 2019 16:47:04 +0000 (16:47 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 14 Jun 2019 16:47:04 +0000 (16:47 +0000)
commit963f1cb84dc62b9bc2ade12013d55a3b03571327
treed300bed8fd76335c798db189c657b9da871e66d0
parentd2feef80432c1a6ead96f933e8a3a1738edcbfe6
build: don't attempt to run config.guess on Windows

When cross-compiling LLVM to android from Windows (for LLVMSupport), we would
attempt to execute `config.guess` to determine the host triple since
`CMAKE_SYSTEM_NAME` is not Windows and `CMAKE_C_COMPILER` will be set to GNU or
Clang.  This will fail as `config.guess` is a shell script which cannot be
executed on Windows.  Simply log a warning instead.  The user can specify the
value for this instead in those cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363420 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/GetHostTriple.cmake