xo-jit: + LLVM_LIBRARY_DIR, need this on darwin
This commit is contained in:
parent
e1d8d7619b
commit
ce9d93240a
1 changed files with 10 additions and 0 deletions
|
|
@ -23,6 +23,15 @@ separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
|
|||
|
||||
message(STATUS "LLVM_DEFINITIONS_LIST=[${LLVM_DEFINITIONS_LIST}]")
|
||||
|
||||
# LLVM library directory
|
||||
execute_process(
|
||||
COMMAND llvm-config --libdir
|
||||
COMMAND tr -d '\n'
|
||||
OUTPUT_VARIABLE LLVM_LIBRARY_DIR
|
||||
)
|
||||
|
||||
message(STATUS "LLVM_LIBRARY_DIR=[${LLVM_LIBRARY_DIR}]")
|
||||
|
||||
# Find the libraries that correspond to the LLVM components
|
||||
execute_process(
|
||||
COMMAND llvm-config --libs all
|
||||
|
|
@ -34,6 +43,7 @@ message(STATUS "LLVM_LIBS=[${LLVM_LIBS}]")
|
|||
|
||||
target_include_directories(${SELF_LIB} PUBLIC ${LLVM_INCLUDE_DIRS})
|
||||
target_compile_definitions(${SELF_LIB} PUBLIC ${LLVM_DEFINITIONS_LIST})
|
||||
target_link_directories(${SELF_LIB} PUBLIC ${LLVM_LIBRARY_DIR})
|
||||
target_link_libraries(${SELF_LIB} PUBLIC ${LLVM_LIBS})
|
||||
|
||||
# end CMakeLists.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue