[gn build] Merge r350341
authorNico Weber <nicolasweber@gmx.de>
Sun, 6 Jan 2019 15:49:10 +0000 (15:49 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 6 Jan 2019 15:49:10 +0000 (15:49 +0000)
Adds a build file for llvm-elfabi and makes check-llvm depend on it.

llvm-svn: 350494

llvm/utils/gn/secondary/llvm/test/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn [new file with mode: 0644]

index f282c7f..91f7a87 100644 (file)
@@ -187,7 +187,6 @@ group("test") {
     # lit tests run.
     "//llvm/lib/LineEditor",
     "//llvm/lib/Testing/Support",
-    "//llvm/lib/TextAPI",
     "//llvm/tools/bugpoint",
     "//llvm/tools/dsymutil",
     "//llvm/tools/llc",
@@ -208,6 +207,7 @@ group("test") {
     "//llvm/tools/llvm-dis",
     "//llvm/tools/llvm-dwarfdump",
     "//llvm/tools/llvm-dwp",
+    "//llvm/tools/llvm-elfabi",
     "//llvm/tools/llvm-exegesis",
     "//llvm/tools/llvm-extract",
     "//llvm/tools/llvm-isel-fuzzer",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn
new file mode 100644 (file)
index 0000000..dd12e20
--- /dev/null
@@ -0,0 +1,12 @@
+executable("llvm-elfabi") {
+  deps = [
+    "//llvm/lib/Object",
+    "//llvm/lib/Support",
+    "//llvm/lib/TextAPI",
+  ]
+  sources = [
+    "ELFObjHandler.cpp",
+    "ErrorCollector.cpp",
+    "llvm-elfabi.cpp",
+  ]
+}