summaryrefslogtreecommitdiff
path: root/cmake/modules/GetTargetTriple.cmake
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2009-10-14 17:57:32 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2009-10-14 17:57:32 +0000
commit59850d0874429601812bc13408cb1f776649027c (patch)
treeb21f6de4e08b89bb7931806bab798fc2a5e3a686 /cmake/modules/GetTargetTriple.cmake
parent18f153bdb9db52e7089a2d5293b96c45a3124a26 (diff)
Diffstat (limited to 'cmake/modules/GetTargetTriple.cmake')
-rw-r--r--cmake/modules/GetTargetTriple.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/modules/GetTargetTriple.cmake b/cmake/modules/GetTargetTriple.cmake
index c915a9a6ae607..87262add59d3a 100644
--- a/cmake/modules/GetTargetTriple.cmake
+++ b/cmake/modules/GetTargetTriple.cmake
@@ -3,7 +3,13 @@
function( get_target_triple var )
if( MSVC )
- set( ${var} "i686-pc-win32" PARENT_SCOPE )
+ if( CMAKE_CL_64 )
+ set( ${var} "x86_64-pc-win32" PARENT_SCOPE )
+ else()
+ set( ${var} "i686-pc-win32" PARENT_SCOPE )
+ endif()
+ elseif( MINGW AND NOT MSYS )
+ set( ${var} "i686-pc-mingw32" PARENT_SCOPE )
else( MSVC )
set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
execute_process(COMMAND sh ${config_guess}