projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35ad41
)
GetTargetTriple.cmake: detect MinGW 64 bits.
author
Oscar Fuentes
<ofv@wanadoo.es>
Wed, 13 Oct 2010 20:15:08 +0000
(20:15 +0000)
committer
Oscar Fuentes
<ofv@wanadoo.es>
Wed, 13 Oct 2010 20:15:08 +0000
(20:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116424
91177308
-0d34-0410-b5e6-
96231b3b80d8
cmake/modules/GetTargetTriple.cmake
patch
|
blob
|
history
diff --git
a/cmake/modules/GetTargetTriple.cmake
b/cmake/modules/GetTargetTriple.cmake
index ac0c009242666c1db1e60bd34dabf66a38eda2ec..f4321c9b67ec77c4ebd23090b00dccaf94894bc4 100644
(file)
--- a/
cmake/modules/GetTargetTriple.cmake
+++ b/
cmake/modules/GetTargetTriple.cmake
@@
-9,7
+9,11
@@
function( get_target_triple var )
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}