mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
build: Attempt to rectify inconsistencies between CMake and LLVMBuild versions of explicit dependencies.
- The hope is that we have a tool/test to verify these are accurate (and tight) soon. llvm-svn: 144444
This commit is contained in:
parent
a83fbaff5f
commit
73d41b0f03
@ -12,10 +12,11 @@ add_llvm_library(LLVMJIT
|
||||
)
|
||||
|
||||
add_llvm_library_dependencies(LLVMJIT
|
||||
LLVMCodeGen
|
||||
LLVMCore
|
||||
LLVMExecutionEngine
|
||||
LLVMMC
|
||||
LLVMRuntimeDyld
|
||||
LLVMSupport
|
||||
LLVMTarget
|
||||
LLVMCodeGen
|
||||
)
|
||||
|
@ -19,5 +19,5 @@
|
||||
type = Library
|
||||
name = JIT
|
||||
parent = ExecutionEngine
|
||||
required_libraries = CodeGen Core ExecutionEngine MC Support Target
|
||||
required_libraries = CodeGen Core ExecutionEngine MC RuntimeDyld Support Target
|
||||
|
||||
|
@ -19,5 +19,5 @@
|
||||
type = Library
|
||||
name = MC
|
||||
parent = Libraries
|
||||
required_libraries = Support
|
||||
required_libraries = Object Support
|
||||
|
||||
|
@ -10,21 +10,4 @@ add_llvm_library_dependencies(LLVMMCDisassembler
|
||||
LLVMMC
|
||||
LLVMMCParser
|
||||
LLVMSupport
|
||||
LLVMTarget
|
||||
)
|
||||
|
||||
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
||||
set(td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t})
|
||||
if(EXISTS ${td}/TargetInfo/CMakeLists.txt)
|
||||
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Info")
|
||||
endif()
|
||||
if(EXISTS ${td}/MCTargetDesc/CMakeLists.txt)
|
||||
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Desc")
|
||||
endif()
|
||||
if(EXISTS ${td}/AsmParser/CMakeLists.txt)
|
||||
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}AsmParser")
|
||||
endif()
|
||||
if(EXISTS ${td}/Disassembler/CMakeLists.txt)
|
||||
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Disassembler")
|
||||
endif()
|
||||
endforeach(t)
|
||||
|
@ -19,5 +19,5 @@
|
||||
type = Library
|
||||
name = Object
|
||||
parent = Libraries
|
||||
required_libraries = Support
|
||||
required_libraries = Core Support
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = ARMDisassembler
|
||||
parent = ARM
|
||||
required_libraries = ARMDesc ARMInfo MC Support
|
||||
required_libraries = ARMCodeGen ARMDesc ARMInfo MC Support
|
||||
add_to_library_groups = ARM
|
||||
|
||||
|
@ -12,8 +12,8 @@ add_dependencies(LLVMARMDesc ARMCommonTableGen)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/..)
|
||||
|
||||
add_llvm_library_dependencies(LLVMARMDesc
|
||||
LLVMARMInfo
|
||||
LLVMARMAsmPrinter
|
||||
LLVMARMInfo
|
||||
LLVMMC
|
||||
LLVMSupport
|
||||
)
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = ARMInfo
|
||||
parent = ARM
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = ARM
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = CBackendInfo
|
||||
parent = CBackend
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = CBackend
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = CellSPUDesc
|
||||
parent = CellSPU
|
||||
required_libraries = CellSPUInfo MC Support
|
||||
required_libraries = CellSPUInfo MC
|
||||
add_to_library_groups = CellSPU
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = CellSPUInfo
|
||||
parent = CellSPU
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = CellSPU
|
||||
|
||||
|
@ -6,5 +6,6 @@ add_llvm_library(LLVMCppBackendInfo
|
||||
|
||||
add_llvm_library_dependencies(LLVMCppBackendInfo
|
||||
LLVMMC
|
||||
LLVMSupport
|
||||
LLVMTarget
|
||||
)
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = CppBackendInfo
|
||||
parent = CppBackend
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = CppBackend
|
||||
|
||||
|
@ -14,7 +14,6 @@ set_property(
|
||||
endif()
|
||||
|
||||
add_llvm_library_dependencies(LLVMMBlazeDisassembler
|
||||
LLVMMBlazeCodeGen
|
||||
LLVMMBlazeDesc
|
||||
LLVMMBlazeInfo
|
||||
LLVMMC
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = MBlazeInfo
|
||||
parent = MBlaze
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = MBlaze
|
||||
|
||||
|
@ -7,6 +7,8 @@ add_llvm_library_dependencies(LLVMMSP430Desc
|
||||
LLVMMC
|
||||
LLVMMSP430AsmPrinter
|
||||
LLVMMSP430Info
|
||||
LLVMSupport
|
||||
LLVMTarget
|
||||
)
|
||||
|
||||
add_dependencies(LLVMMSP430Desc MSP430CommonTableGen)
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = MSP430Desc
|
||||
parent = MSP430
|
||||
required_libraries = MC MSP430AsmPrinter MSP430Info Support
|
||||
required_libraries = MC MSP430AsmPrinter MSP430Info Support Target
|
||||
add_to_library_groups = MSP430
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = MSP430Info
|
||||
parent = MSP430
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = MSP430
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = MipsInfo
|
||||
parent = Mips
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = Mips
|
||||
|
||||
|
@ -36,6 +36,7 @@ add_llvm_library_dependencies(LLVMPTXCodeGen
|
||||
LLVMSelectionDAG
|
||||
LLVMSupport
|
||||
LLVMTarget
|
||||
LLVMTransformUtils
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -25,6 +25,6 @@ has_asmprinter = 1
|
||||
type = Library
|
||||
name = PTXCodeGen
|
||||
parent = PTX
|
||||
required_libraries = Analysis AsmPrinter CodeGen Core MC PTXDesc PTXInfo Scalar SelectionDAG Support Target TransformUtils
|
||||
required_libraries = Analysis AsmPrinter CodeGen Core MC PTXDesc PTXInfo SelectionDAG Support Target TransformUtils
|
||||
add_to_library_groups = PTX
|
||||
|
||||
|
@ -5,8 +5,8 @@ add_llvm_library(LLVMPTXDesc
|
||||
|
||||
add_llvm_library_dependencies(LLVMPTXDesc
|
||||
LLVMMC
|
||||
LLVMPTXInfo
|
||||
LLVMPTXAsmPrinter
|
||||
LLVMPTXInfo
|
||||
LLVMSupport
|
||||
)
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = PTXInfo
|
||||
parent = PTX
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = PTX
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = PowerPCInfo
|
||||
parent = PowerPC
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = PowerPC
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = SparcInfo
|
||||
parent = Sparc
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = Sparc
|
||||
|
||||
|
@ -62,6 +62,8 @@ add_llvm_library_dependencies(LLVMX86CodeGen
|
||||
LLVMTarget
|
||||
LLVMX86AsmPrinter
|
||||
LLVMX86Desc
|
||||
LLVMX86Info
|
||||
LLVMX86Utils
|
||||
)
|
||||
|
||||
add_subdirectory(AsmParser)
|
||||
|
@ -10,7 +10,6 @@ add_llvm_library_dependencies(LLVMX86Desc
|
||||
LLVMMC
|
||||
LLVMSupport
|
||||
LLVMX86AsmPrinter
|
||||
LLVMX86AsmPrinter
|
||||
LLVMX86Info
|
||||
)
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = X86Info
|
||||
parent = X86
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = X86
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = XCoreDesc
|
||||
parent = XCore
|
||||
required_libraries = MC Support XCoreInfo
|
||||
required_libraries = MC XCoreInfo
|
||||
add_to_library_groups = XCore
|
||||
|
||||
|
@ -19,6 +19,6 @@
|
||||
type = Library
|
||||
name = XCoreInfo
|
||||
parent = XCore
|
||||
required_libraries = MC Support
|
||||
required_libraries = MC Support Target
|
||||
add_to_library_groups = XCore
|
||||
|
||||
|
@ -24,6 +24,7 @@ add_llvm_library(LLVMipo
|
||||
add_llvm_library_dependencies(LLVMipo
|
||||
LLVMAnalysis
|
||||
LLVMCore
|
||||
LLVMInstCombine
|
||||
LLVMScalarOpts
|
||||
LLVMSupport
|
||||
LLVMTarget
|
||||
|
Loading…
Reference in New Issue
Block a user