mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
Use explicit add_subdirectory's for LLVM target sublibraries instead
of testing for its presence at cmake time. This way the build automatically regenerates the makefiles when a svn update brings in a new sublibrary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7ac0199287
commit
00d78f1348
@ -121,5 +121,5 @@ macro(add_llvm_target target_name)
|
||||
if ( TABLEGEN_OUTPUT )
|
||||
add_dependencies(LLVM${target_name} ${target_name}Table_gen)
|
||||
endif (TABLEGEN_OUTPUT)
|
||||
set(CURRENT_LLVM_TARGET LLVM${target_name} PARENT_SCOPE)
|
||||
set( CURRENT_LLVM_TARGET LLVM${target_name} )
|
||||
endmacro(add_llvm_target)
|
||||
|
@ -62,3 +62,8 @@ set_property(
|
||||
PROPERTY COMPILE_FLAGS "/Od"
|
||||
)
|
||||
endif()
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
add_subdirectory(AsmParser)
|
||||
add_subdirectory(Disassembler)
|
||||
add_subdirectory(InstPrinter)
|
||||
|
@ -24,3 +24,5 @@ add_llvm_target(AlphaCodeGen
|
||||
AlphaTargetMachine.cpp
|
||||
AlphaSelectionDAGInfo.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -24,3 +24,5 @@ add_llvm_target(BlackfinCodeGen
|
||||
BlackfinTargetMachine.cpp
|
||||
BlackfinSelectionDAGInfo.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -1,3 +1,5 @@
|
||||
add_llvm_target(CBackend
|
||||
CBackend.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -22,30 +22,20 @@ set(LLVM_ENUM_DISASSEMBLERS "")
|
||||
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
||||
message(STATUS "Targeting ${t}")
|
||||
add_subdirectory(${t})
|
||||
add_subdirectory(${t}/TargetInfo)
|
||||
set( td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t} )
|
||||
file(GLOB asmp_file "${td}/*AsmPrinter.cpp")
|
||||
if( asmp_file )
|
||||
set(LLVM_ENUM_ASM_PRINTERS
|
||||
"${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
|
||||
endif()
|
||||
if( EXISTS ${td}/InstPrinter/CMakeLists.txt )
|
||||
add_subdirectory(${t}/InstPrinter)
|
||||
endif()
|
||||
if( EXISTS ${td}/AsmParser/CMakeLists.txt )
|
||||
add_subdirectory(${t}/AsmParser)
|
||||
set(LLVM_ENUM_ASM_PARSERS
|
||||
"${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
|
||||
endif()
|
||||
if( EXISTS ${td}/Disassembler/CMakeLists.txt )
|
||||
add_subdirectory(${t}/Disassembler)
|
||||
set(LLVM_ENUM_DISASSEMBLERS
|
||||
"${LLVM_ENUM_DISASSEMBLERS}LLVM_DISASSEMBLER(${t})\n")
|
||||
endif()
|
||||
if( EXISTS ${td}/Utils/CMakeLists.txt )
|
||||
add_subdirectory(${td}/Utils)
|
||||
endif()
|
||||
set(CURRENT_LLVM_TARGET)
|
||||
endforeach(t)
|
||||
|
||||
# Produce llvm/Config/AsmPrinters.def
|
||||
|
@ -25,3 +25,5 @@ add_llvm_target(CellSPUCodeGen
|
||||
SPUSelectionDAGInfo.cpp
|
||||
SPUNopFiller.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -1,3 +1,5 @@
|
||||
add_llvm_target(CppBackend
|
||||
CPPBackend.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -33,3 +33,8 @@ add_llvm_target(MBlazeCodeGen
|
||||
MBlazeELFWriterInfo.cpp
|
||||
MBlazeMCCodeEmitter.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(AsmParser)
|
||||
add_subdirectory(Disassembler)
|
||||
add_subdirectory(InstPrinter)
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -24,3 +24,6 @@ add_llvm_target(MSP430CodeGen
|
||||
MSP430AsmPrinter.cpp
|
||||
MSP430MCInstLower.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(InstPrinter)
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -24,3 +24,5 @@ add_llvm_target(MipsCodeGen
|
||||
MipsTargetObjectFile.cpp
|
||||
MipsSelectionDAGInfo.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -22,3 +22,5 @@ add_llvm_target(PTXCodeGen
|
||||
PTXSubtarget.cpp
|
||||
PTXTargetMachine.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -32,3 +32,6 @@ add_llvm_target(PowerPCCodeGen
|
||||
PPCTargetMachine.cpp
|
||||
PPCSelectionDAGInfo.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(InstPrinter)
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -24,3 +24,5 @@ add_llvm_target(SparcCodeGen
|
||||
SparcTargetMachine.cpp
|
||||
SparcSelectionDAGInfo.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -22,3 +22,5 @@ add_llvm_target(SystemZCodeGen
|
||||
SystemZTargetMachine.cpp
|
||||
SystemZSelectionDAGInfo.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
@ -57,3 +57,8 @@ endif()
|
||||
|
||||
add_llvm_target(X86CodeGen ${sources})
|
||||
|
||||
add_subdirectory(AsmParser)
|
||||
add_subdirectory(Disassembler)
|
||||
add_subdirectory(InstPrinter)
|
||||
add_subdirectory(TargetInfo)
|
||||
add_subdirectory(Utils)
|
||||
|
@ -23,3 +23,5 @@ add_llvm_target(XCoreCodeGen
|
||||
XCoreTargetObjectFile.cpp
|
||||
XCoreSelectionDAGInfo.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(TargetInfo)
|
||||
|
Loading…
Reference in New Issue
Block a user