[llvm] 095a493 - [gn build] Manually port d2ead9e3

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 09:49:31 PDT 2022


Author: Arthur Eubanks
Date: 2022-07-08T09:49:21-07:00
New Revision: 095a493ceaef8d133b1fc0277209ecb18a25da14

URL: https://github.com/llvm/llvm-project/commit/095a493ceaef8d133b1fc0277209ecb18a25da14
DIFF: https://github.com/llvm/llvm-project/commit/095a493ceaef8d133b1fc0277209ecb18a25da14.diff

LOG: [gn build] Manually port d2ead9e3

Added: 
    

Modified: 
    llvm/utils/gn/secondary/clang/tools/clang-linker-wrapper/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
index 723f782328935..fd23c2b427158 100644
--- a/llvm/utils/gn/secondary/clang/tools/clang-linker-wrapper/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/clang-linker-wrapper/BUILD.gn
@@ -1,6 +1,14 @@
+import("//llvm/utils/TableGen/tablegen.gni")
+
+tablegen("LinkerWrapperOpts") {
+  args = [ "-gen-opt-parser-defs" ]
+  td_file = "LinkerWrapperOpts.td"
+}
+
 executable("clang-linker-wrapper") {
   configs += [ "//llvm/utils/gn/build:clang_code" ]
   deps = [
+    ":LinkerWrapperOpts",
     "//clang/lib/Basic",
     "//llvm/lib/Analysis",
     "//llvm/lib/BinaryFormat",
@@ -11,6 +19,7 @@ executable("clang-linker-wrapper") {
     "//llvm/lib/LTO",
     "//llvm/lib/MC",
     "//llvm/lib/Object",
+    "//llvm/lib/Option",
     "//llvm/lib/Passes",
     "//llvm/lib/Support",
     "//llvm/lib/Target",


        


More information about the llvm-commits mailing list