diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-12-09 03:31:58 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-12-09 03:31:58 +0000 |
commit | 0c5fc0c7e141fad623c3770a954e5a7ae7178aaa (patch) | |
tree | 5b8862fe356a450e3830c95de0d6473c2a0dc06c /cmake | |
parent | 1d5969d839ddc4d0af93fd035aa13131e5c6fa82 (diff) |
Fix InitializeNativeTargetAsmParser in CMake builds by defining the
appropriate macro. Patch by Alexey Prokhin. Fixes PR11498.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index a5077002fe..88eaa74017 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -332,6 +332,11 @@ else () set(LLVM_NATIVE_TARGETINFO LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo) set(LLVM_NATIVE_TARGETMC LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC) set(LLVM_NATIVE_ASMPRINTER LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter) + + # We don't have an ASM parser for all architectures yet. + if (EXISTS ${CMAKE_SOURCE_DIR}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt) + set(LLVM_NATIVE_ASMPARSER LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser) + endif () endif () if( MINGW ) |