Skip to content

Commit

Permalink
[gn] port 32f7922 (LLVMOptDriver)
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Jan 24, 2024
1 parent 3135984 commit 609695b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions llvm/utils/gn/secondary/llvm/tools/opt/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
executable("opt") {
static_library("lib") {
output_name = "LLVMOptDriver"
deps = [
"//llvm/include/llvm/Config:llvm-config",
"//llvm/lib/Analysis",
Expand All @@ -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.
Expand Down

0 comments on commit 609695b

Please sign in to comment.