1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/tools/lli/CMakeLists.txt
Hubert Tong f12628ef2a [cmake] Link in LLVMPasses due to dependency by LLVMOrcJIT; NFC
Summary:
rL367756 (f5c40cb) increases the dependency of LLVMOrcJIT on LLVMPasses.
In particular, symbols defined in LLVMPasses that are referenced by the
destructor of `PassBuilder` are now referenced by LLVMOrcJIT through
`Speculation.cpp.o`.

We believe that referencing symbols defined in LLVMPasses in the
destructor of `PassBuilder` is valid, and that adding to the set of such
symbols is legitimate. To support such cases, this patch adds LLVMPasses
to the set of libraries being linked when linking in LLVMOrcJIT causes
such symbols from LLVMPasses to be referenced.

Reviewers: Whitney, anhtuyen, pree-jackie

Reviewed By: pree-jackie

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66441

llvm-svn: 369310
2019-08-19 23:12:48 +00:00

56 lines
820 B
CMake

if ( LLVM_INCLUDE_UTILS )
add_subdirectory(ChildTarget)
endif()
set(LLVM_LINK_COMPONENTS
CodeGen
Core
ExecutionEngine
IRReader
Interpreter
MC
MCJIT
Object
OrcJIT
Passes
RuntimeDyld
SelectionDAG
Support
Target
TransformUtils
native
)
if( LLVM_USE_OPROFILE )
set(LLVM_LINK_COMPONENTS
${LLVM_LINK_COMPONENTS}
OProfileJIT
)
endif( LLVM_USE_OPROFILE )
if( LLVM_USE_INTEL_JITEVENTS )
set(LLVM_LINK_COMPONENTS
${LLVM_LINK_COMPONENTS}
DebugInfoDWARF
IntelJITEvents
Object
)
endif( LLVM_USE_INTEL_JITEVENTS )
if( LLVM_USE_PERF )
set(LLVM_LINK_COMPONENTS
${LLVM_LINK_COMPONENTS}
DebugInfoDWARF
PerfJITEvents
Object
)
endif( LLVM_USE_PERF )
add_llvm_tool(lli
lli.cpp
DEPENDS
intrinsics_gen
)
export_executable_symbols(lli)