File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,15 @@ if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
22 add_custom_command (
33 OUTPUT ${LLVM_TOOLS_BINARY_DIR} /llvm-locstats
44 DEPENDS ${LLVM_MAIN_SRC_DIR} /utils/llvm-locstats/llvm-locstats.py
5+ DEPENDS llvm-dwarfdump
56 COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR} /utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR} /llvm-locstats
67 COMMENT "Copying llvm-locstats into ${LLVM_TOOLS_BINARY_DIR} "
78 )
89 add_custom_target (llvm-locstats ALL
910 DEPENDS ${LLVM_TOOLS_BINARY_DIR} /llvm-locstats
1011 )
12+ if (NOT LLVM_BUILD_TOOLS)
13+ set_target_properties (llvm-locstats PROPERTIES EXCLUDE_FROM_ALL ON )
14+ endif ()
1115 set_target_properties (llvm-locstats PROPERTIES FOLDER "Tools" )
1216endif ()
You can’t perform that action at this time.
0 commit comments