From 3dfa3a12badd83d4f108fa52ccbbd2bc57935fcf Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 6 Oct 2022 09:38:23 -0400 Subject: [PATCH] [gn build] port d1f13c54f1728 (Inclusions/Stdlib) --- llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn | 1 + llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/BUILD.gn | 1 - .../utils/gn/secondary/clang/lib/Tooling/Inclusions/Stdlib/BUILD.gn | 6 ++++++ llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/Stdlib/BUILD.gn 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 1ee54b4..535d87d 100644 --- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn +++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn @@ -56,6 +56,7 @@ static_library("clangd") { "//clang/lib/Tooling", "//clang/lib/Tooling/Core", "//clang/lib/Tooling/Inclusions", + "//clang/lib/Tooling/Inclusions/Stdlib", "//clang/lib/Tooling/Refactoring", "//clang/lib/Tooling/Syntax", "//llvm/lib/Support", diff --git a/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/BUILD.gn index 208a8ae..419c615d 100644 --- a/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/BUILD.gn +++ b/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/BUILD.gn @@ -11,6 +11,5 @@ static_library("Inclusions") { sources = [ "HeaderIncludes.cpp", "IncludeStyle.cpp", - "StandardLibrary.cpp", ] } diff --git a/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/Stdlib/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/Stdlib/BUILD.gn new file mode 100644 index 0000000..93d03c3 --- /dev/null +++ b/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/Stdlib/BUILD.gn @@ -0,0 +1,6 @@ +static_library("Stdlib") { + output_name = "clangToolingInclusionsStdlib" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ "//clang/lib/AST" ] + sources = [ "StandardLibrary.cpp" ] +} diff --git a/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn index 7cab8a0..37e45e0 100644 --- a/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn +++ b/llvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn @@ -15,6 +15,8 @@ unittest("ToolingTests") { "//clang/lib/Tooling", "//clang/lib/Tooling/Core", "//clang/lib/Tooling/DependencyScanning", + "//clang/lib/Tooling/Inclusions", + "//clang/lib/Tooling/Inclusions/Stdlib", "//clang/lib/Tooling/Refactoring", "//clang/lib/Tooling/Transformer", "//llvm/lib/Support", -- 2.7.4