diff options
author | Duncan Sands <baldrick@free.fr> | 2009-08-19 12:41:52 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-08-19 12:41:52 +0000 |
commit | dfcb9bfcc01c4010c167886caae47252aab1b261 (patch) | |
tree | 7fe688bf1f29d39a1348f9394570b8cacd729ace /cmake | |
parent | ad0f120f5909e0107e55a3913333d5cc59bbf0b6 (diff) | |
download | external_llvm-dfcb9bfcc01c4010c167886caae47252aab1b261.zip external_llvm-dfcb9bfcc01c4010c167886caae47252aab1b261.tar.gz external_llvm-dfcb9bfcc01c4010c167886caae47252aab1b261.tar.bz2 |
Fix cmake build on non-x86 targets. Patch by
Xerxes RĂ„nby.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/modules/LLVMConfig.cmake | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake index 7c75dd0..d1c297c 100755 --- a/cmake/modules/LLVMConfig.cmake +++ b/cmake/modules/LLVMConfig.cmake @@ -59,11 +59,9 @@ function(explicit_map_components_to_libraries out_libs) list(APPEND expanded_components "LLVM${c}Info") endif() elseif( c STREQUAL "native" ) - # TODO: we assume ARCH is X86. - list(APPEND expanded_components "LLVMX86CodeGen") + list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}CodeGen") elseif( c STREQUAL "nativecodegen" ) - # TODO: we assume ARCH is X86. - list(APPEND expanded_components "LLVMX86CodeGen") + list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}CodeGen") elseif( c STREQUAL "backend" ) # same case as in `native'. elseif( c STREQUAL "engine" ) |