mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Re-land "[cmake] Add dependency on llvm-dwarfdump to llvm-locstats"
This reverts commit f8e2ab3cd347cb7fb959ea0ece795f4eb347094c.
This commit is contained in:
parent
b8b0b4e20a
commit
033afbf4d8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user