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:
1095f2a
)
CMake: target triple for MSVC on Windows 64.
author
Oscar Fuentes
<ofv@wanadoo.es>
Wed, 12 Aug 2009 00:04:12 +0000
(
00:04
+0000)
committer
Oscar Fuentes
<ofv@wanadoo.es>
Wed, 12 Aug 2009 00:04:12 +0000
(
00:04
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78753
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 c915a9a6ae607da567d7a04581254de3869371d2..5708d62e8d8cdf4f887c2c776803c37a321fcb62 100644
(file)
--- 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}