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 | e6308656a66a33de70168acf500e10d4945c0e38 (patch) | |
tree | 3dce2e315540d35b85a5e7bcd7481d19ddb5b28d /tools | |
parent | 59abfa10b712132cd0c40403dc540b21e8334b22 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-mc/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llvm-mc/CMakeLists.txt b/tools/llvm-mc/CMakeLists.txt index 6f8e9e5405f..15c6dda1b25 100644 --- a/tools/llvm-mc/CMakeLists.txt +++ b/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 |