[llvm] r364485 - [cmake] Allow config.guess to be run with MSYS on Windows

Pengxuan Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 15:07:43 PDT 2019


Author: pzheng
Date: Wed Jun 26 15:07:43 2019
New Revision: 364485

URL: http://llvm.org/viewvc/llvm-project?rev=364485&view=rev
Log:
[cmake] Allow config.guess to be run with MSYS on Windows

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

Modified:
    llvm/trunk/cmake/modules/GetHostTriple.cmake

Modified: llvm/trunk/cmake/modules/GetHostTriple.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/GetHostTriple.cmake?rev=364485&r1=364484&r2=364485&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/GetHostTriple.cmake (original)
+++ llvm/trunk/cmake/modules/GetHostTriple.cmake Wed Jun 26 15:07:43 2019
@@ -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)




More information about the llvm-commits mailing list