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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2011-07-29 02:12:59 +00:00
parent 6126005259
commit 7ad75f6c50

View File

@ -7,42 +7,15 @@ add_llvm_library(LLVMMCDisassembler
)
add_llvm_library_dependencies(LLVMMCDisassembler
LLVMARMAsmParser
LLVMARMDesc
LLVMARMDisassembler
LLVMARMInfo
LLVMAlphaDesc
LLVMAlphaInfo
LLVMBlackfinDesc
LLVMBlackfinInfo
LLVMCBackendInfo
LLVMCellSPUDesc
LLVMCellSPUInfo
LLVMCppBackendInfo
LLVMMBlazeAsmParser
LLVMMBlazeDesc
LLVMMBlazeDisassembler
LLVMMBlazeInfo
LLVMMC
LLVMMCParser
LLVMMSP430Desc
LLVMMSP430Info
LLVMMipsDesc
LLVMMipsInfo
LLVMPTXDesc
LLVMPTXInfo
LLVMPowerPCDesc
LLVMPowerPCInfo
LLVMSparcDesc
LLVMSparcInfo
LLVMSupport
LLVMSystemZDesc
LLVMSystemZInfo
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)