diff options
author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2024-04-02 22:14:03 +0100 |
---|---|---|
committer | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2024-04-02 23:21:48 +0100 |
commit | b4adb42151bbfa80be4cf6d076cbe5edf680693e (patch) | |
tree | 405250d268972ad82fb8c60dd878f6b6e48b2353 /clang/lib | |
parent | 68217a52fb9fec8a88623f97a90899b8d27eefb3 (diff) | |
download | llvm-b4adb42151bbfa80be4cf6d076cbe5edf680693e.zip llvm-b4adb42151bbfa80be4cf6d076cbe5edf680693e.tar.gz llvm-b4adb42151bbfa80be4cf6d076cbe5edf680693e.tar.bz2 |
Use setup_host_tool for clang-ast-dump, fixes 76707
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Tooling/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Tooling/CMakeLists.txt b/clang/lib/Tooling/CMakeLists.txt index 91e6cbdc..8b4ab0e 100644 --- a/clang/lib/Tooling/CMakeLists.txt +++ b/clang/lib/Tooling/CMakeLists.txt @@ -53,14 +53,16 @@ else() list(APPEND implicitDirs -I ${implicitDir}) endforeach() + setup_host_tool(clang-ast-dump CLANG_AST_DUMP clang_ast_dump_exe clang_ast_dump_target) + include(GetClangResourceDir) get_clang_resource_dir(resource_dir PREFIX ${LLVM_BINARY_DIR}) add_custom_command( COMMENT Generate ASTNodeAPI.json OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json - DEPENDS clang-ast-dump clang-resource-headers + DEPENDS ${clang_ast_dump_target} clang-resource-headers COMMAND - $<TARGET_FILE:clang-ast-dump> + ${clang_ast_dump_exe} # Skip this in debug mode because parsing AST.h is too slow --skip-processing=${skip_expensive_processing} -I ${resource_dir}/include |