Skip to content

Commit 609695b

Browse files
committed
[gn] port 32f7922 (LLVMOptDriver)
1 parent 3135984 commit 609695b

File tree

1 file changed

+8
-2
lines changed
  • llvm/utils/gn/secondary/llvm/tools/opt

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
executable("opt") {
1+
static_library("lib") {
2+
output_name = "LLVMOptDriver"
23
deps = [
34
"//llvm/include/llvm/Config:llvm-config",
45
"//llvm/lib/Analysis",
@@ -23,8 +24,13 @@ executable("opt") {
2324
]
2425
sources = [
2526
"NewPMDriver.cpp",
26-
"opt.cpp",
27+
"optdriver.cpp",
2728
]
29+
}
30+
31+
executable("opt") {
32+
sources = [ "opt.cpp" ]
33+
deps = [ ":lib" ]
2834

2935
# Support plugins.
3036
# FIXME: Disable dead stripping once other binaries are dead-stripped.

0 commit comments

Comments
 (0)