[llvm] 9973075 - [gn build] port clang-linker-wrapper build file
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 21:11:42 PDT 2022
Author: Nico Weber
Date: 2022-04-20T00:11:34-04:00
New Revision: 99730752741d9511010c6039b0380587976f8a4d
URL: https://github.com/llvm/llvm-project/commit/99730752741d9511010c6039b0380587976f8a4d
DIFF: https://github.com/llvm/llvm-project/commit/99730752741d9511010c6039b0380587976f8a4d.diff
LOG: [gn build] port clang-linker-wrapper build file
Tests now try to run it, so we need a build file for it.
Added:
llvm/utils/gn/secondary/clang/tools/clang-linker-wrapper/BUILD.gn
Modified:
llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/tools/clang-linker-wrapper/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/clang-linker-wrapper/BUILD.gn
new file mode 100644
index 0000000000000..723f782328935
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/tools/clang-linker-wrapper/BUILD.gn
@@ -0,0 +1,24 @@
+executable("clang-linker-wrapper") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/Basic",
+ "//llvm/lib/Analysis",
+ "//llvm/lib/BinaryFormat",
+ "//llvm/lib/Bitcode/Writer",
+ "//llvm/lib/CodeGen",
+ "//llvm/lib/IR",
+ "//llvm/lib/IRReader",
+ "//llvm/lib/LTO",
+ "//llvm/lib/MC",
+ "//llvm/lib/Object",
+ "//llvm/lib/Passes",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target",
+ "//llvm/lib/Target:TargetsToBuild",
+ "//llvm/lib/Transforms/Utils",
+ ]
+ sources = [
+ "ClangLinkerWrapper.cpp",
+ "OffloadWrapper.cpp",
+ ]
+}
diff --git a/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
index 8e721f2648855..9277874c8b335 100644
--- a/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/driver/BUILD.gn
@@ -56,6 +56,7 @@ executable("clang") {
"//clang/lib/Frontend",
"//clang/lib/FrontendTool",
"//clang/lib/Headers",
+ "//clang/tools/clang-linker-wrapper",
"//clang/tools/clang-offload-bundler",
"//clang/tools/clang-offload-wrapper",
"//llvm/include/llvm/Config:llvm-config",
More information about the llvm-commits
mailing list