[PATCH] D71705: [cmake] Add dependency on llvm-dwarfdump to llvm-locstats
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 07:52:11 PST 2019
DavidSpickett updated this revision to Diff 234723.
DavidSpickett edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71705/new/
https://reviews.llvm.org/D71705
Files:
llvm/utils/llvm-locstats/CMakeLists.txt
Index: llvm/utils/llvm-locstats/CMakeLists.txt
===================================================================
--- llvm/utils/llvm-locstats/CMakeLists.txt
+++ llvm/utils/llvm-locstats/CMakeLists.txt
@@ -2,11 +2,15 @@
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()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71705.234723.patch
Type: text/x-patch
Size: 889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191219/3359dc58/attachment-0001.bin>
More information about the llvm-commits
mailing list