[llvm-commits] [llvm] r116424 - /llvm/trunk/cmake/modules/GetTargetTriple.cmake
Oscar Fuentes
ofv at wanadoo.es
Wed Oct 13 13:15:08 PDT 2010
Author: ofv
Date: Wed Oct 13 15:15:08 2010
New Revision: 116424
URL: http://llvm.org/viewvc/llvm-project?rev=116424&view=rev
Log:
GetTargetTriple.cmake: detect MinGW 64 bits.
Modified:
llvm/trunk/cmake/modules/GetTargetTriple.cmake
Modified: llvm/trunk/cmake/modules/GetTargetTriple.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/GetTargetTriple.cmake?rev=116424&r1=116423&r2=116424&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/GetTargetTriple.cmake (original)
+++ llvm/trunk/cmake/modules/GetTargetTriple.cmake Wed Oct 13 15:15:08 2010
@@ -9,7 +9,11 @@
set( value "i686-pc-win32" )
endif()
elseif( MINGW AND NOT MSYS )
- set( value "i686-pc-mingw32" )
+ if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
+ set( value "x86_64-w64-mingw32" )
+ else()
+ set( value "i686-pc-mingw32" )
+ endif()
else( MSVC )
set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
execute_process(COMMAND sh ${config_guess}
More information about the llvm-commits
mailing list