mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Stop running get_target_triple more than we need to.
llvm-svn: 86418
This commit is contained in:
parent
15c86ad832
commit
656c9bf461
@ -149,6 +149,9 @@ include(GetTargetTriple)
|
||||
get_target_triple(LLVM_HOSTTRIPLE)
|
||||
message(STATUS "LLVM_HOSTTRIPLE: ${LLVM_HOSTTRIPLE}")
|
||||
|
||||
# FIXME: We don't distinguish the target and the host. :(
|
||||
set(TARGET_TRIPLE "${LLVM_HOSTTRIPLE}")
|
||||
|
||||
# Determine the native architecture.
|
||||
string(TOLOWER "${LLVM_TARGET_ARCH}" LLVM_NATIVE_ARCH)
|
||||
if( LLVM_NATIVE_ARCH STREQUAL "host" )
|
||||
|
@ -1,6 +1,3 @@
|
||||
include(GetTargetTriple)
|
||||
get_target_triple(target)
|
||||
|
||||
foreach(c ${LLVM_TARGETS_TO_BUILD})
|
||||
set(TARGETS_BUILT "${TARGETS_BUILT} ${c}")
|
||||
endforeach(c)
|
||||
|
@ -1,6 +1,6 @@
|
||||
## Autogenerated by LLVM/Clang configuration.
|
||||
# Do not edit!
|
||||
set target_triplet "@target@"
|
||||
set target_triplet "@TARGET_TRIPLE@"
|
||||
set TARGETS_TO_BUILD "@TARGETS_TO_BUILD@"
|
||||
set llvmgcc_langs "@LLVMGCC_LANGS@"
|
||||
set llvmgcc_version "@LLVMGCC_VERSION@"
|
||||
|
@ -36,9 +36,6 @@ foreach(l ${LLVM_SYSTEM_LIBS_LIST})
|
||||
set(LLVM_SYSTEM_LIBS ${LLVM_SYSTEM_LIBS} "-l${l}")
|
||||
endforeach()
|
||||
|
||||
include(GetTargetTriple)
|
||||
get_target_triple(target)
|
||||
|
||||
foreach(c ${LLVM_TARGETS_TO_BUILD})
|
||||
set(TARGETS_BUILT "${TARGETS_BUILT} ${c}")
|
||||
endforeach(c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user