[llvm-commits] [patch] select correct cmake nativetarget CodeGen when ARCH!=X86

Xerxes RĂ„nby xerxes at zafena.se
Wed Aug 19 05:33:33 PDT 2009


This patch fixes cmake configuration issues, like the output below on
ARM, for non X86 cmake builds.

xerxes at debian:/usr/src/build/llvm-cmake$ cmake ../llvm
-- Looking for mkdtemp
-- Looking for mkdtemp - not found.
-- Looking for mkstemp
-- Looking for mkstemp - not found.
-- Looking for mktemp
-- Looking for mktemp - not found.
-- Target triple:
-- LLVM_HOSTTRIPLE: armv5tejl-unknown-linux-gnu
-- Native target architecture is ARM
-- Threads enabled.
-- Targeting ARM
-- Targeting CBackend
-- Targeting CppBackend
-- Target triple:
CMake Error at cmake/modules/LLVMConfig.cmake:88 (message):
  Library LLVMX86CodeGen not found in list of llvm libraries.
Call Stack (most recent call first):
  cmake/modules/LLVMConfig.cmake:27 (explicit_map_components_to_libraries)
  cmake/modules/LLVMConfig.cmake:20 (explicit_llvm_config)
  cmake/modules/AddLLVM.cmake:34 (llvm_config)
  cmake/modules/AddLLVM.cmake:48 (add_llvm_executable)
  tools/lli/CMakeLists.txt:3 (add_llvm_tool)


ok to commit?

Cheers
Xerxes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_nativetarget_CodeGen.patch
Type: text/x-patch
Size: 878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090819/8217555f/attachment.bin>


More information about the llvm-commits mailing list