File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,14 @@ else()
53
53
list (APPEND implicitDirs -I ${implicitDir} )
54
54
endforeach ()
55
55
56
- setup_host_tool (clang-ast-dump CLANG_AST_DUMP clang_ast_dump_exe clang_ast_dump_target )
57
-
58
56
include (GetClangResourceDir )
59
57
get_clang_resource_dir (resource_dir PREFIX ${LLVM_BINARY_DIR} )
60
58
add_custom_command (
61
59
COMMENT Generate ASTNodeAPI.json
62
60
OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /ASTNodeAPI.json
63
- DEPENDS ${clang_ast_dump_target} clang-resource-headers
61
+ DEPENDS clang-ast-dump clang-resource-headers
64
62
COMMAND
65
- ${clang_ast_dump_exe}
63
+ $< TARGET_FILE:clang-ast-dump >
66
64
# Skip this in debug mode because parsing AST.h is too slow
67
65
--skip-processing=${skip_expensive_processing}
68
66
-I ${resource_dir} /include
You can’t perform that action at this time.
0 commit comments