From 0ca9d2fd39264054501927ba6d3c5330159458d7 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Fri, 20 Dec 2019 09:11:07 +0000 Subject: [PATCH] Re-land "[cmake] Add dependency on llvm-dwarfdump to llvm-locstats" This reverts commit f8e2ab3cd347cb7fb959ea0ece795f4eb347094c. --- llvm/utils/llvm-locstats/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/utils/llvm-locstats/CMakeLists.txt b/llvm/utils/llvm-locstats/CMakeLists.txt index d5366f9..1dbb9da 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() -- 2.7.4