mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Stop running get_target_triple more than we need to.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86418 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f0bb41c078
commit
e9b88e4440
@ -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