[llvm] 442801a - [gn build] (manually) port 9b6765e784b3
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 12:27:12 PDT 2020
Author: Nico Weber
Date: 2020-09-18T15:26:58-04:00
New Revision: 442801a7b9b5460114498c48c12b8af40e495188
URL: https://github.com/llvm/llvm-project/commit/442801a7b9b5460114498c48c12b8af40e495188
DIFF: https://github.com/llvm/llvm-project/commit/442801a7b9b5460114498c48c12b8af40e495188.diff
LOG: [gn build] (manually) port 9b6765e784b3
Added:
Modified:
llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
index 7fa4cc8fd32c..2fc2d0e26007 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
@@ -20,10 +20,42 @@ write_cmake_config("features") {
public_configs = [ ":features_config" ]
}
+action("CompletionModelCpp") {
+ script = "quality/CompletionModelCodegen.py"
+ outputs = [
+ "$target_gen_dir/CompletionModel.cpp",
+ "$target_gen_dir/CompletionModel.h",
+ ]
+ args = [
+ "--model",
+ rebase_path("quality/model", root_build_dir),
+ "--output_dir",
+ rebase_path(target_gen_dir, root_build_dir),
+ "--filename",
+ "CompletionModel",
+ "--cpp_class",
+ "clang::clangd::Example",
+ ]
+}
+
+config("CompletionModelConfig") {
+ cflags = [ "-Wno-unused-label" ]
+}
+
+source_set("CompletionModel") {
+ configs += [
+ "//llvm/utils/gn/build:clang_code",
+ ":CompletionModelConfig",
+ ]
+ deps = [ ":CompletionModelCpp" ]
+ sources = get_target_outputs(":CompletionModelCpp")
+}
+
static_library("clangd") {
output_name = "clangDaemon"
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
+ ":CompletionModel",
":features",
"//clang-tools-extra/clang-tidy",
"//clang-tools-extra/clang-tidy:all-checks",
More information about the llvm-commits
mailing list