[llvm] 609695b - [gn] port 32f7922646d5 (LLVMOptDriver)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 11:03:47 PST 2024


Author: Nico Weber
Date: 2024-01-24T14:03:33-05:00
New Revision: 609695b23e1cba538f90969afbb1b80367f2d5da

URL: https://github.com/llvm/llvm-project/commit/609695b23e1cba538f90969afbb1b80367f2d5da
DIFF: https://github.com/llvm/llvm-project/commit/609695b23e1cba538f90969afbb1b80367f2d5da.diff

LOG: [gn] port 32f7922646d5 (LLVMOptDriver)

Added: 
    

Modified: 
    llvm/utils/gn/secondary/llvm/tools/opt/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/tools/opt/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/opt/BUILD.gn
index 67940c61fe134d..b044c928bc885e 100644
--- a/llvm/utils/gn/secondary/llvm/tools/opt/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/opt/BUILD.gn
@@ -1,4 +1,5 @@
-executable("opt") {
+static_library("lib") {
+  output_name = "LLVMOptDriver"
   deps = [
     "//llvm/include/llvm/Config:llvm-config",
     "//llvm/lib/Analysis",
@@ -23,8 +24,13 @@ executable("opt") {
   ]
   sources = [
     "NewPMDriver.cpp",
-    "opt.cpp",
+    "optdriver.cpp",
   ]
+}
+
+executable("opt") {
+  sources = [ "opt.cpp" ]
+  deps = [ ":lib" ]
 
   # Support plugins.
   # FIXME: Disable dead stripping once other binaries are dead-stripped.


        


More information about the llvm-commits mailing list