1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

Fix the MCDisassembler dependencies. These were just absurdly wrong.

First off, only depend on the actual MC-ized disassemblers in the
targets, not all of the libraries those in turn depend on.

Second off, only depend on those MC-ized disassemblers for targets we're
building.

This should fix builds of fewer than all targets.

llvm-svn: 136455
This commit is contained in:
Chandler Carruth 2011-07-29 02:12:59 +00:00
parent 871df895f4
commit 05514697a8

View File

@ -7,42 +7,15 @@ add_llvm_library(LLVMMCDisassembler
) )
add_llvm_library_dependencies(LLVMMCDisassembler add_llvm_library_dependencies(LLVMMCDisassembler
LLVMARMAsmParser
LLVMARMDesc
LLVMARMDisassembler
LLVMARMInfo
LLVMAlphaDesc
LLVMAlphaInfo
LLVMBlackfinDesc
LLVMBlackfinInfo
LLVMCBackendInfo
LLVMCellSPUDesc
LLVMCellSPUInfo
LLVMCppBackendInfo
LLVMMBlazeAsmParser
LLVMMBlazeDesc
LLVMMBlazeDisassembler
LLVMMBlazeInfo
LLVMMC LLVMMC
LLVMMCParser LLVMMCParser
LLVMMSP430Desc
LLVMMSP430Info
LLVMMipsDesc
LLVMMipsInfo
LLVMPTXDesc
LLVMPTXInfo
LLVMPowerPCDesc
LLVMPowerPCInfo
LLVMSparcDesc
LLVMSparcInfo
LLVMSupport LLVMSupport
LLVMSystemZDesc
LLVMSystemZInfo
LLVMTarget LLVMTarget
LLVMX86AsmParser
LLVMX86Desc
LLVMX86Disassembler
LLVMX86Info
LLVMXCoreDesc
LLVMXCoreInfo
) )
foreach(t ${LLVM_TARGETS_TO_BUILD})
set(td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t})
if(EXISTS ${td}/Disassembler/CMakeLists.txt)
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Disassembler")
endif()
endforeach(t)