[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 08:41:19 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGba430f503244: [cmake] Add dependency on llvm-dwarfdump to llvm-locstats (authored by DavidSpickett).
Repository:
rG LLVM Github Monorepo
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.234731.patch
Type: text/x-patch
Size: 889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191219/93f2d4ad/attachment.bin>
More information about the llvm-commits
mailing list