[llvm] 6043321 - [gn] port bc152fbf4315 (llvm-debuginfod-find driver_exe)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 05:58:27 PDT 2024


Author: Nico Weber
Date: 2024-09-11T08:58:18-04:00
New Revision: 6043321127fa3c51481beaee683a34c2d2ca468d

URL: https://github.com/llvm/llvm-project/commit/6043321127fa3c51481beaee683a34c2d2ca468d
DIFF: https://github.com/llvm/llvm-project/commit/6043321127fa3c51481beaee683a34c2d2ca468d.diff

LOG: [gn] port bc152fbf4315 (llvm-debuginfod-find driver_exe)

Added: 
    

Modified: 
    llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find/BUILD.gn
index 16b2c53438314a..6b926bc777dca8 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-debuginfod-find/BUILD.gn
@@ -1,6 +1,13 @@
 import("//llvm/tools/binutils_symlinks.gni")
+import("//llvm/utils/TableGen/tablegen.gni")
+import("//llvm/utils/gn/build/driver_executable.gni")
 import("//llvm/utils/gn/build/symlink_or_copy.gni")
 
+tablegen("Opts") {
+  visibility = [ ":llvm-debuginfod-find" ]
+  args = [ "-gen-opt-parser-defs" ]
+}
+
 if (llvm_install_binutils_symlinks) {
   symlink_or_copy("debuginfod-find") {
     deps = [ ":llvm-debuginfod-find" ]
@@ -18,9 +25,11 @@ group("symlinks") {
   }
 }
 
-executable("llvm-debuginfod-find") {
+driver_executable("llvm-debuginfod-find") {
   deps = [
+    ":Opts",
     "//llvm/lib/Debuginfod",
+    "//llvm/lib/Option",
     "//llvm/lib/Support",
   ]
   sources = [ "llvm-debuginfod-find.cpp" ]


        


More information about the llvm-commits mailing list