Permalink
Browse files

Fix handling of LLVM libraries

  • Loading branch information...
Joerg Mayer authored and alexp-sssup committed Apr 25, 2011
1 parent dc27b97 commit 05e61405a95e4aaa657a1bc1a998aa5108756bd3
Showing with 2 additions and 1 deletion.
  1. +2 −1 conf/FindLLVM.cmake
View
@@ -89,6 +89,7 @@ else (LLVM_INCLUDE_DIR)
STRING(REGEX MATCHALL "[^ ]*[.]o[ $]" ${OBJECT_VAR} ${${LIB_VAR}})
SEPARATE_ARGUMENTS(${OBJECT_VAR})
STRING(REGEX REPLACE "[^ ]*[.]o[ $]" "" ${LIB_VAR} ${${LIB_VAR}})
SEPARATE_ARGUMENTS(${LIB_VAR})
ENDMACRO(FIND_LLVM_LIBS)
@@ -146,7 +147,7 @@ else (LLVM_INCLUDE_DIR)
MESSAGE(STATUS "LLVM CXX flags: " ${LLVM_COMPILE_FLAGS})
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS )
MESSAGE(STATUS "LLVM LD flags: " ${LLVM_LDFLAGS})
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --libs core ipa ipo instrumentation bitreader bitwriter linker OUTPUT_VARIABLE LLVM_LIBS_CORE )
FIND_LLVM_LIBS( ${LLVM_CONFIG_EXECUTABLE} "core ipa ipo instrumentation bitreader bitwriter linker" LLVM_LIBS_CORE LLVM_LIBS_CORE_OBJECTS )
MESSAGE(STATUS "LLVM core libs: " ${LLVM_LIBS_CORE})
IF(APPLE AND UNIVERSAL)
FIND_LLVM_LIBS( ${LLVM_CONFIG_EXECUTABLE} "jit native x86 PowerPC ARM" LLVM_LIBS_JIT LLVM_LIBS_JIT_OBJECTS )

0 comments on commit 05e6140

Please sign in to comment.