aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCDisassembler
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-29 02:12:59 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-29 02:12:59 +0000
commit7ad75f6c500d5497f3526dcedbaf302099cf800c (patch)
tree7decf84268eef1ec9c3bd3106266379d9387e841 /lib/MC/MCDisassembler
parent6126005259422581d165e406af0e46de19c0b401 (diff)
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
Diffstat (limited to 'lib/MC/MCDisassembler')
-rw-r--r--lib/MC/MCDisassembler/CMakeLists.txt41
1 files changed, 7 insertions, 34 deletions
diff --git a/lib/MC/MCDisassembler/CMakeLists.txt b/lib/MC/MCDisassembler/CMakeLists.txt
index bb7447ccc0..9ccd1f4a9e 100644
--- a/lib/MC/MCDisassembler/CMakeLists.txt
+++ b/lib/MC/MCDisassembler/CMakeLists.txt
@@ -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)