summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-08-30 18:34:48 +0000
committerEric Christopher <echristo@apple.com>2010-08-30 18:34:48 +0000
commit753f3265dafdcfeec07b561ca278524c35477583 (patch)
treec8adfeeb491b48394175af2929c2ba38323604ae /cmake
parent2027362e8d99df1780ba604cff624b116a4e6ecf (diff)
downloadllvm-753f3265dafdcfeec07b561ca278524c35477583.tar.gz
llvm-753f3265dafdcfeec07b561ca278524c35477583.tar.bz2
llvm-753f3265dafdcfeec07b561ca278524c35477583.tar.xz
Fix LLVM target initialization to deal with sociopathic outside projects
that like to randomly define things like "X86", regenerate autoconf bits and update cmake. Fixes PR7852. Patch by Xerxes RĂ„nby! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 3427ee9c0c..56e8d83736 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -207,7 +207,9 @@ else ()
endif ()
if (LLVM_NATIVE_ARCH)
- set(LLVM_NATIVE_ARCHNAME ${LLVM_NATIVE_ARCH})
+ set(LLVM_NATIVE_TARGET LLVMInitialize${LLVM_NATIVE_ARCH}Target)
+ set(LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo)
+ set(LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter)
list(FIND LLVM_TARGETS_TO_BUILD ${LLVM_NATIVE_ARCH} NATIVE_ARCH_IDX)
if (NATIVE_ARCH_IDX EQUAL -1)
message(STATUS