Make cmake generated llvm-config output correct JIT backend for non X86 targets.

llvm-svn: 82049
This commit is contained in:
Xerxes Ranby 2009-09-16 14:36:35 +00:00
parent 55ae32042d
commit d7ea8f55c2

View File

@ -27,7 +27,7 @@ endif( IS_BIG_ENDIAN )
set(SHLIBEXT ${LTDL_SHLIB_EXT})
#EXEEXT already set.
set(OS "${CMAKE_SYSTEM}")
set(ARCH "X86") # TODO: This gives "i686" in Linux: "${CMAKE_SYSTEM_PROCESSOR}")
set(ARCH "${LLVM_NATIVE_ARCH}")
get_system_libs(LLVM_SYSTEM_LIBS_LIST)
foreach(l ${LLVM_SYSTEM_LIBS_LIST})