[llvm-commits] [llvm] r79419 - /llvm/trunk/cmake/modules/LLVMConfig.cmake
Duncan Sands
baldrick at free.fr
Wed Aug 19 05:41:53 PDT 2009
Author: baldrick
Date: Wed Aug 19 07:41:52 2009
New Revision: 79419
URL: http://llvm.org/viewvc/llvm-project?rev=79419&view=rev
Log:
Fix cmake build on non-x86 targets. Patch by
Xerxes RĂ„nby.
Modified:
llvm/trunk/cmake/modules/LLVMConfig.cmake
Modified: llvm/trunk/cmake/modules/LLVMConfig.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMConfig.cmake?rev=79419&r1=79418&r2=79419&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMConfig.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMConfig.cmake Wed Aug 19 07:41:52 2009
@@ -59,11 +59,9 @@
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" )
More information about the llvm-commits
mailing list