summaryrefslogtreecommitdiffstats
path: root/llvm/tools/dsymutil
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2019-05-23 23:02:56 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2019-05-23 23:02:56 +0000
commit3e4acaabb9d9d8f56cdbd0aff7d89165cab2320f (patch)
treee61dcb40c852e10962060ccbd58e8b5fde82b15c /llvm/tools/dsymutil
parentac95c86511342b5d42c2915f681fe1c15ab8aac9 (diff)
downloadbcm5719-llvm-3e4acaabb9d9d8f56cdbd0aff7d89165cab2320f.tar.gz
bcm5719-llvm-3e4acaabb9d9d8f56cdbd0aff7d89165cab2320f.zip
Break false dependencies on target libraries
Summary: For the most part this consists of replacing ${LLVM_TARGETS_TO_BUILD} with some combination of AllTargets* so that they depend on specific components of a target backend rather than all of it. The overall effect of this is that, for example, tools like opt no longer falsely depend on the disassembler, while tools like llvm-ar no longer depend on the code generator. There's a couple quirks to point out here: * AllTargetsCodeGens is a bit more prevalent than expected. Tools like dsymutil seem to need it which I was surprised by. * llvm-xray linked to all the backends but doesn't seem to need any of them. It builds and passes the tests so that seems to be correct. * I left gold out as it's not built when binutils is not available so I'm unable to test it Reviewers: bogner, JDevlieghere Reviewed By: bogner Subscribers: mehdi_amini, mgorny, steven_wu, dexonsmith, rupprecht, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D62331 llvm-svn: 361567
Diffstat (limited to 'llvm/tools/dsymutil')
-rw-r--r--llvm/tools/dsymutil/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/dsymutil/CMakeLists.txt b/llvm/tools/dsymutil/CMakeLists.txt
index 480f78fb188..19865e3d20e 100644
--- a/llvm/tools/dsymutil/CMakeLists.txt
+++ b/llvm/tools/dsymutil/CMakeLists.txt
@@ -1,5 +1,8 @@
set(LLVM_LINK_COMPONENTS
- ${LLVM_TARGETS_TO_BUILD}
+ AllTargetsAsmPrinters
+ AllTargetsCodeGens
+ AllTargetsDescs
+ AllTargetsInfos
AsmPrinter
DebugInfoDWARF
MC
OpenPOWER on IntegriCloud