[PATCH] D89657: [gn build] Add missing clangd dependencies
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 18 13:41:32 PDT 2020
aeubanks created this revision.
aeubanks added a reviewer: thakis.
Herald added subscribers: llvm-commits, usaxena95, kadircet, arphaman.
Herald added a project: LLVM.
aeubanks requested review of this revision.
Herald added subscribers: MaskRay, ilya-biryukov.
Fixes
$ ninja obj/build/rel/gen/clang-tools-extra/clangd/CompletionModel.CompletionModel.obj
Some tablegen include files from clang/include/clang/AST and
clang/include/clang/Sema need to be generated before CompletionModel is
compiled.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89657
Files:
llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/clangd/quality/gen_decision_forest.gni
Index: llvm/utils/gn/secondary/clang-tools-extra/clangd/quality/gen_decision_forest.gni
===================================================================
--- llvm/utils/gn/secondary/clang-tools-extra/clangd/quality/gen_decision_forest.gni
+++ llvm/utils/gn/secondary/clang-tools-extra/clangd/quality/gen_decision_forest.gni
@@ -2,6 +2,11 @@
model = invoker.model
filename = invoker.filename
cpp_class = invoker.cpp_class
+ if (defined(invoker.deps)) {
+ extra_deps = invoker.deps
+ } else {
+ extra_deps = []
+ }
action("${target_name}Cpp") {
script = "//clang-tools-extra/clangd/quality/CompletionModelCodegen.py"
@@ -34,7 +39,7 @@
"//llvm/utils/gn/build:clang_code",
":${target_name}Config",
]
- deps = [ ":${target_name}Cpp" ]
+ deps = [ ":${target_name}Cpp" ] + extra_deps
include_dirs = [ "." ]
sources = get_target_outputs(":${target_name}Cpp")
}
Index: llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
+++ llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
@@ -25,6 +25,7 @@
model = "quality/model"
filename = "CompletionModel"
cpp_class = "clang::clangd::Example"
+ deps = [ "//clang/lib/Sema" ]
}
static_library("clangd") {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89657.298900.patch
Type: text/x-patch
Size: 1361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201018/6e27b69e/attachment.bin>
More information about the llvm-commits
mailing list