[clang] 9fec50f - [cmake] use project relative paths when generating ASTNodeAPI.json
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 15 03:35:44 PST 2021
Author: Matheus Izvekov
Date: 2021-11-15T12:35:34+01:00
New Revision: 9fec50f001b1ab86ff36c6e92336ae1c1d3fcdef
URL: https://github.com/llvm/llvm-project/commit/9fec50f001b1ab86ff36c6e92336ae1c1d3fcdef
DIFF: https://github.com/llvm/llvm-project/commit/9fec50f001b1ab86ff36c6e92336ae1c1d3fcdef.diff
LOG: [cmake] use project relative paths when generating ASTNodeAPI.json
Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>
Reviewed By: stephenneuendorffer
Differential Revision: https://reviews.llvm.org/D113664
Added:
Modified:
clang/lib/Tooling/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/lib/Tooling/CMakeLists.txt b/clang/lib/Tooling/CMakeLists.txt
index 558385b0eb5a..403d2dfb45e8 100644
--- a/clang/lib/Tooling/CMakeLists.txt
+++ b/clang/lib/Tooling/CMakeLists.txt
@@ -60,11 +60,11 @@ else()
$<TARGET_FILE:clang-ast-dump>
# Skip this in debug mode because parsing AST.h is too slow
--skip-processing=${skip_expensive_processing}
- -I ${CMAKE_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include
- -I ${CMAKE_SOURCE_DIR}/../clang/include
- -I ${CMAKE_BINARY_DIR}/tools/clang/include
- -I ${CMAKE_BINARY_DIR}/include
- -I ${CMAKE_SOURCE_DIR}/include
+ -I ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include
+ -I ${CLANG_SOURCE_DIR}/include
+ -I ${LLVM_BINARY_DIR}/tools/clang/include
+ -I ${LLVM_BINARY_DIR}/include
+ -I ${LLVM_SOURCE_DIR}/include
${implicitDirs}
--json-output-path ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json
)
More information about the cfe-commits
mailing list