mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
db639c6979
In -DBUILD_SHARED_LIBS=on builds, a component must specify its direct dependencies to satisfy -Wl,-z,defs (added by llvm/modules/HandleLLVMOptions.cmake). Core is a direct dependency via transitive header inclusion: ld.lld: error: undefined symbol: llvm::LLVMContext::LLVMContext() >>> referenced by MachineSizeOptsTest.cpp >>> unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o:(testing::internal::TestFactoryImpl<(anonymous namespace)::MachineSizeOptsTest_Test_Test>::CreateTest()) MC is a direct dependency via transitive header inclusion: ld.lld: error: undefined symbol: llvm::MCTargetOptions::MCTargetOptions() >>> referenced by MachineSizeOptsTest.cpp >>> unittests/Target/X86/CMakeFiles/X86Tests.dir/MachineSizeOptsTest.cpp.o:((anonymous namespace)::MachineSizeOptsTest::SetUp())
22 lines
284 B
CMake
22 lines
284 B
CMake
include_directories(
|
|
${CMAKE_SOURCE_DIR}/lib/Target/X86
|
|
${CMAKE_BINARY_DIR}/lib/Target/X86
|
|
)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
Analysis
|
|
CodeGen
|
|
Core
|
|
MC
|
|
MIRParser
|
|
Support
|
|
Target
|
|
X86CodeGen
|
|
X86Desc
|
|
X86Info
|
|
)
|
|
|
|
add_llvm_unittest(X86Tests
|
|
MachineSizeOptsTest.cpp
|
|
)
|