diff options
author | David Spickett <david.spickett@arm.com> | 2019-12-19 15:00:56 +0000 |
---|---|---|
committer | David Spickett <david.spickett@arm.com> | 2019-12-19 16:36:14 +0000 |
commit | ba430f503244d1498529d47f31090cdf79b5c231 (patch) | |
tree | f5051a4a3c6d8c55d122f7bd86b3b46f8e36271a /llvm/utils/llvm-locstats | |
parent | 86acaa9457d3957cbe303e1e801f1e727f66ca89 (diff) | |
download | bcm5719-llvm-ba430f503244d1498529d47f31090cdf79b5c231.tar.gz bcm5719-llvm-ba430f503244d1498529d47f31090cdf79b5c231.zip |
[cmake] Add dependency on llvm-dwarfdump to llvm-locstats
Though llvm-locstat is a "util" it requires llvm-dwarfdump
to be useful. So what happens now is that unless LLVM_BUILD_TOOLS
is ON llvm-locstats won't be part of the "all" target.
However given that it requires llvm-dwarfdump, this is less
confusing/build time consuming than suddenly having llvm-dwarfdump
build when all other tools are disabled.
Differential Revision: https://reviews.llvm.org/D71705
Diffstat (limited to 'llvm/utils/llvm-locstats')
-rw-r--r-- | llvm/utils/llvm-locstats/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/llvm-locstats/CMakeLists.txt b/llvm/utils/llvm-locstats/CMakeLists.txt index d5366f99050..1dbb9da92e2 100644 --- a/llvm/utils/llvm-locstats/CMakeLists.txt +++ b/llvm/utils/llvm-locstats/CMakeLists.txt @@ -2,11 +2,15 @@ if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS) add_custom_command( OUTPUT ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats DEPENDS ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py + DEPENDS llvm-dwarfdump COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats COMMENT "Copying llvm-locstats into ${LLVM_TOOLS_BINARY_DIR}" ) add_custom_target(llvm-locstats ALL DEPENDS ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats ) + if (NOT LLVM_BUILD_TOOLS) + set_target_properties(llvm-locstats PROPERTIES EXCLUDE_FROM_ALL ON) + endif() set_target_properties(llvm-locstats PROPERTIES FOLDER "Tools") endif() |