Link against the top-level LLVM targets only

Dependencies are still linked through usage requirements.
This commit is contained in:
Florent Castelli 2018-05-02 01:11:01 +02:00 committed by Ani
parent afd55da8cb
commit 253248349f
1 changed files with 1 additions and 5 deletions

View File

@ -320,11 +320,7 @@ if(NOT LLVM_FOUND)
else()
add_definitions(${LLVM_DEFINITIONS})
add_definitions(-DLLVM_AVAILABLE)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
llvm_map_components_to_libnames(LLVM_LIBS core support executionengine object runtimedyld x86desc x86info scalaropts mcjit vectorize ipo x86codegen x86disassembler)
else()
llvm_map_components_to_libnames(LLVM_LIBS core support executionengine object runtimedyld x86desc x86info scalaropts mcjit vectorize ipo x86codegen x86disassembler mcdisassembler)
endif()
set(LLVM_LIBS LLVMMCJIT LLVMX86CodeGen)
if(NOT MSVC)
set_source_files_properties(${RPCS3_SRC_DIR}/../Utilities/JIT.cpp PROPERTIES COMPILE_FLAGS -fno-rtti)