[llvm] 2d8c74c - [gn build] (manually) port 4539b44148918 (llvm-dwarfutil)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 08:51:10 PDT 2022


Author: Nico Weber
Date: 2022-07-19T11:50:54-04:00
New Revision: 2d8c74cf498402aaff5dcd35bf9329aa269274b2

URL: https://github.com/llvm/llvm-project/commit/2d8c74cf498402aaff5dcd35bf9329aa269274b2
DIFF: https://github.com/llvm/llvm-project/commit/2d8c74cf498402aaff5dcd35bf9329aa269274b2.diff

LOG: [gn build] (manually) port 4539b44148918 (llvm-dwarfutil)

Added: 
    llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn
    llvm/utils/gn/secondary/llvm/test/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn
index a953e1b671ef..1685c0f32b47 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/BUILD.gn
@@ -62,6 +62,13 @@ group("AllTargetsAsmParsers") {
   }
 }
 
+group("AllTargetsCodeGens") {
+  deps = []
+  foreach(target, llvm_targets_to_build) {
+    deps += [ "$target:LLVM${target}CodeGen" ]
+  }
+}
+
 group("AllTargetsDescs") {
   deps = []
   foreach(target, llvm_targets_to_build) {

diff  --git a/llvm/utils/gn/secondary/llvm/test/BUILD.gn b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
index 54a36f473328..fc46fa80b665 100644
--- a/llvm/utils/gn/secondary/llvm/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
@@ -262,6 +262,7 @@ group("test") {
     "//llvm/tools/llvm-
diff ",
     "//llvm/tools/llvm-dis",
     "//llvm/tools/llvm-dwarfdump",
+    "//llvm/tools/llvm-dwarfutil",
     "//llvm/tools/llvm-dwp",
     "//llvm/tools/llvm-exegesis",
     "//llvm/tools/llvm-extract",

diff  --git a/llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn
new file mode 100644
index 000000000000..672dd83248c7
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-dwarfutil/BUILD.gn
@@ -0,0 +1,28 @@
+import("//llvm/utils/TableGen/tablegen.gni")
+
+tablegen("Options") {
+  visibility = [ ":llvm-dwarfutil" ]
+  args = [ "-gen-opt-parser-defs" ]
+}
+
+executable("llvm-dwarfutil") {
+  deps = [
+    ":Options",
+    "//llvm/lib/DWARFLinker",
+    "//llvm/lib/DebugInfo/DWARF",
+    "//llvm/lib/MC",
+    "//llvm/lib/ObjCopy",
+    "//llvm/lib/Object",
+    "//llvm/lib/Option",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target",
+    "//llvm/lib/Target:TargetsToBuild",
+    "//llvm/lib/Target:AllTargetsCodeGens",
+    "//llvm/lib/Target:AllTargetsDescs",
+    "//llvm/lib/Target:AllTargetsInfos",
+  ]
+  sources = [
+    "llvm-dwarfutil.cpp",
+    "DebugInfoLinker.cpp",
+  ]
+}


        


More information about the llvm-commits mailing list