[PATCH] D71695: [cmake] Include the llvm-locstats target when utils and tools are not being built.

Djordje Todorovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 04:51:33 PST 2019


djtodoro added a comment.

Something like the diff bellow would address the concerns.

  diff --git a/llvm/utils/llvm-locstats/CMakeLists.txt b/llvm/utils/llvm-locstats/CMakeLists.txt
  index d5366f99050..82099fed314 100644
  --- a/llvm/utils/llvm-locstats/CMakeLists.txt
  +++ b/llvm/utils/llvm-locstats/CMakeLists.txt
  @@ -2,6 +2,7 @@ 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}"
       )


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71695/new/

https://reviews.llvm.org/D71695





More information about the llvm-commits mailing list