Skip to content

Commit

Permalink
[gn build] Port 03f43b3
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Mar 31, 2020
1 parent 7f1ea92 commit 45b6364
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions llvm/utils/gn/secondary/lld/MachO/BUILD.gn
@@ -0,0 +1,36 @@
import("//llvm/utils/TableGen/tablegen.gni")

tablegen("Options") {
visibility = [ ":MachO2" ]
args = [ "-gen-opt-parser-defs" ]
}

static_library("MachO2") {
output_name = "lldMachO2"
configs += [ "//llvm/utils/gn/build:lld_code" ]
deps = [
":Options",
"//lld/Common",
"//llvm/lib/BinaryFormat",
"//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/IR",
"//llvm/lib/LTO",
"//llvm/lib/MC",
"//llvm/lib/Object",
"//llvm/lib/Option",
"//llvm/lib/Support",
"//llvm/lib/Target:TargetsToBuild",
]
include_dirs = [ "." ]
sources = [
"Arch/X86_64.cpp",
"Driver.cpp",
"InputFiles.cpp",
"InputSection.cpp",
"OutputSegment.cpp",
"SymbolTable.cpp",
"Symbols.cpp",
"Target.cpp",
"Writer.cpp",
]
}
1 change: 1 addition & 0 deletions llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
Expand Up @@ -27,6 +27,7 @@ executable("lld") {
deps = [
"//lld/COFF",
"//lld/ELF",
"//lld/MachO:MachO2",
"//lld/MinGW",
"//lld/lib/Driver",
"//lld/wasm",
Expand Down

0 comments on commit 45b6364

Please sign in to comment.