diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2015-04-20 18:22:05 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2015-04-20 18:22:05 +0000 |
| commit | 468d6d7fa6ea9f323066f2451ca519d7f5feb2f5 (patch) | |
| tree | 6600d2b3cac803a0d80ecc7e9c882668e69cdefc /llvm/tools | |
| parent | 848af387d87b4c1d31191bfcdf02186f12c1b319 (diff) | |
| download | bcm5719-llvm-468d6d7fa6ea9f323066f2451ca519d7f5feb2f5.tar.gz bcm5719-llvm-468d6d7fa6ea9f323066f2451ca519d7f5feb2f5.zip | |
Add targets to cmake for specific target components.
This adds the following targets to cmake. These can be used to build and link only specific parts of a backend, instead of having to link the whole backend.
- AllTargetsAsmPrinters, AllTargetsAsmParsers, AllTargetsDescs, AllTargetsDisassemblers, AllTargetsInfos
A typical use for these is instead of linking ${LLVM_TARGETS_TO_BUILD}. This commit changes llvm-mc to show how to use the new targets.
Reviewed by Chris Bieneman.
llvm-svn: 235324
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llvm-mc/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/CMakeLists.txt b/llvm/tools/llvm-mc/CMakeLists.txt index 6f8e9e5405f..15c6dda1b25 100644 --- a/llvm/tools/llvm-mc/CMakeLists.txt +++ b/llvm/tools/llvm-mc/CMakeLists.txt @@ -1,5 +1,9 @@ set(LLVM_LINK_COMPONENTS - ${LLVM_TARGETS_TO_BUILD} + AllTargetsAsmPrinters + AllTargetsAsmParsers + AllTargetsDescs + AllTargetsDisassemblers + AllTargetsInfos MC MCParser Support |

