diff --git a/llvm/utils/gn/secondary/clang/lib/Frontend/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Frontend/BUILD.gn index a362529e6b81..86559329127e 100644 --- a/llvm/utils/gn/secondary/clang/lib/Frontend/BUILD.gn +++ b/llvm/utils/gn/secondary/clang/lib/Frontend/BUILD.gn @@ -29,7 +29,6 @@ static_library("Frontend") { "DependencyFile.cpp", "DependencyGraph.cpp", "DiagnosticRenderer.cpp", - "ExtractAPIConsumer.cpp", "FrontendAction.cpp", "FrontendActions.cpp", "FrontendOptions.cpp", diff --git a/llvm/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn index 5f8f02159158..b1bf459eac98 100644 --- a/llvm/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn +++ b/llvm/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn @@ -14,6 +14,7 @@ static_library("FrontendTool") { "//clang/lib/Driver", "//clang/lib/Frontend", "//clang/lib/Frontend/Rewrite", + "//clang/lib/SymbolGraph", "//llvm/lib/Option", "//llvm/lib/Support", ] diff --git a/llvm/utils/gn/secondary/clang/lib/SymbolGraph/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/SymbolGraph/BUILD.gn new file mode 100644 index 000000000000..3b4d296d27cf --- /dev/null +++ b/llvm/utils/gn/secondary/clang/lib/SymbolGraph/BUILD.gn @@ -0,0 +1,17 @@ +static_library("SymbolGraph") { + output_name = "clangSymbolGraph" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/lib/AST", + "//clang/lib/Basic", + "//clang/lib/Frontend", + "//clang/lib/Index", + "//llvm/lib/Support", + ] + sources = [ + "API.cpp", + "ExtractAPIConsumer.cpp", + "DeclarationFragments.cpp", + "Serialization.cpp", + ] +}