aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/GetTargetTriple.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/GetTargetTriple.cmake')
-rw-r--r--cmake/modules/GetTargetTriple.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/modules/GetTargetTriple.cmake b/cmake/modules/GetTargetTriple.cmake
index c915a9a..5708d62 100644
--- a/cmake/modules/GetTargetTriple.cmake
+++ b/cmake/modules/GetTargetTriple.cmake
@@ -3,7 +3,11 @@
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()
else( MSVC )
set(config_guess ${LLVM_MAIN_SRC_DIR}/autoconf/config.guess)
execute_process(COMMAND sh ${config_guess}