Skip to content

Commit 85bc6de

Browse files
committed
Revert "Use setup_host_tool for clang-ast-dump, fixes 76707"
This reverts commit b4adb42. The original commit increased local rebuild times a lot. See the discussion in #76707
1 parent a536743 commit 85bc6de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Tooling/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,14 @@ else()
5353
list(APPEND implicitDirs -I ${implicitDir})
5454
endforeach()
5555

56-
setup_host_tool(clang-ast-dump CLANG_AST_DUMP clang_ast_dump_exe clang_ast_dump_target)
57-
5856
include(GetClangResourceDir)
5957
get_clang_resource_dir(resource_dir PREFIX ${LLVM_BINARY_DIR})
6058
add_custom_command(
6159
COMMENT Generate ASTNodeAPI.json
6260
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json
63-
DEPENDS ${clang_ast_dump_target} clang-resource-headers
61+
DEPENDS clang-ast-dump clang-resource-headers
6462
COMMAND
65-
${clang_ast_dump_exe}
63+
$<TARGET_FILE:clang-ast-dump>
6664
# Skip this in debug mode because parsing AST.h is too slow
6765
--skip-processing=${skip_expensive_processing}
6866
-I ${resource_dir}/include

0 commit comments

Comments
 (0)