Skip to content

Commit

Permalink
[cmake] Allow config.guess to be run with MSYS on Windows
Browse files Browse the repository at this point in the history
Summary:
With r363420, config.guess can no longer be run with MSYS on Windows and this
patch should be able to fix this particular case.

Reviewers: compnerd

Reviewed By: compnerd

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63834

llvm-svn: 364485
  • Loading branch information
pzhengqc committed Jun 26, 2019
1 parent 1659276 commit 4030631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/cmake/modules/GetHostTriple.cmake
Expand Up @@ -15,7 +15,7 @@ function( get_host_triple var )
set( value "i686-pc-windows-gnu" )
endif()
else( MSVC )
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows AND NOT MSYS)
message(WARNING "unable to determine host target triple")
else()
set(config_guess ${LLVM_MAIN_SRC_DIR}/cmake/config.guess)
Expand Down

0 comments on commit 4030631

Please sign in to comment.