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