mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-27 14:45:24 +00:00
405386b95e
Summary: This patch is required by D28855, and enables us to rely on CMake's ability to handle out of order target dependencies. Reviewers: mgorny, chapuni, bryant Subscribers: llvm-commits, jgosnell Differential Revision: https://reviews.llvm.org/D28869 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294514 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
755 B
CMake
26 lines
755 B
CMake
list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
|
|
|
|
list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target)
|
|
|
|
add_llvm_library(LLVMTarget
|
|
Target.cpp
|
|
TargetIntrinsicInfo.cpp
|
|
TargetLoweringObjectFile.cpp
|
|
TargetMachine.cpp
|
|
TargetMachineC.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Target
|
|
)
|
|
|
|
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
|
message(STATUS "Targeting ${t}")
|
|
add_subdirectory(${t})
|
|
endforeach()
|
|
|
|
# Currently we do not allow libraries from lib to reference targets directly.
|
|
# This property is used to enforce that convention. It is important because the
|
|
# logic in llvm_map_components_to_libnames is order dependent on the target
|
|
# libraries being created.
|
|
set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
|