[llvm] 45b6364 - [gn build] Port 03f43b3aca36
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 12:09:51 PDT 2020
Author: Fangrui Song
Date: 2020-03-31T12:09:41-07:00
New Revision: 45b6364e8d74f6038e94b760f017e03740acf725
URL: https://github.com/llvm/llvm-project/commit/45b6364e8d74f6038e94b760f017e03740acf725
DIFF: https://github.com/llvm/llvm-project/commit/45b6364e8d74f6038e94b760f017e03740acf725.diff
LOG: [gn build] Port 03f43b3aca36
Added:
llvm/utils/gn/secondary/lld/MachO/BUILD.gn
Modified:
llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/lld/MachO/BUILD.gn b/llvm/utils/gn/secondary/lld/MachO/BUILD.gn
new file mode 100644
index 000000000000..52f39e67ce54
--- /dev/null
+++ b/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",
+ ]
+}
diff --git a/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn b/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
index f79e2b7883a9..746def906f31 100644
--- a/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
+++ b/llvm/utils/gn/secondary/lld/tools/lld/BUILD.gn
@@ -27,6 +27,7 @@ executable("lld") {
deps = [
"//lld/COFF",
"//lld/ELF",
+ "//lld/MachO:MachO2",
"//lld/MinGW",
"//lld/lib/Driver",
"//lld/wasm",
More information about the llvm-commits
mailing list