From 253248349f3cf960572ba9a104a5ac4370ec5d74 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Wed, 2 May 2018 01:11:01 +0200 Subject: [PATCH] Link against the top-level LLVM targets only Dependencies are still linked through usage requirements. --- rpcs3/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index a63602a2b9..3873ed9032 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -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)