[llvm] 5092039 - [gn build] (manually) port d650cbc349ccc4
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 12:44:05 PDT 2020
Author: Nico Weber
Date: 2020-08-13T15:43:43-04:00
New Revision: 5092039644eac33bdd9e494045a9f99654f792b3
URL: https://github.com/llvm/llvm-project/commit/5092039644eac33bdd9e494045a9f99654f792b3
DIFF: https://github.com/llvm/llvm-project/commit/5092039644eac33bdd9e494045a9f99654f792b3.diff
LOG: [gn build] (manually) port d650cbc349ccc4
Added:
llvm/utils/gn/secondary/llvm/lib/InterfaceStub/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/InterfaceStub/BUILD.gn
Modified:
llvm/utils/gn/secondary/llvm/lib/TextAPI/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/lib/InterfaceStub/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/InterfaceStub/BUILD.gn
new file mode 100644
index 000000000000..0d157bdd6751
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/lib/InterfaceStub/BUILD.gn
@@ -0,0 +1,13 @@
+static_library("InterfaceStub") {
+ output_name = "LLVMInterfaceStub"
+ deps = [
+ "//llvm/lib/Bitstream/Reader",
+ "//llvm/lib/Support",
+ ]
+
+ sources = [
+ "ELFObjHandler.cpp",
+ "ELFStub.cpp",
+ "TBEHandler.cpp",
+ ]
+}
diff --git a/llvm/utils/gn/secondary/llvm/lib/TextAPI/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/TextAPI/BUILD.gn
index aa695da4bf30..6df06f941d4a 100644
--- a/llvm/utils/gn/secondary/llvm/lib/TextAPI/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/TextAPI/BUILD.gn
@@ -6,8 +6,6 @@ static_library("TextAPI") {
]
include_dirs = [ "." ]
sources = [
- "ELF/ELFStub.cpp",
- "ELF/TBEHandler.cpp",
"MachO/Architecture.cpp",
"MachO/ArchitectureSet.cpp",
"MachO/InterfaceFile.cpp",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn
index dd12e20a924e..0b3cb1ec41ba 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-elfabi/BUILD.gn
@@ -1,11 +1,11 @@
executable("llvm-elfabi") {
deps = [
+ "//llvm/lib/InterfaceStub",
"//llvm/lib/Object",
"//llvm/lib/Support",
"//llvm/lib/TextAPI",
]
sources = [
- "ELFObjHandler.cpp",
"ErrorCollector.cpp",
"llvm-elfabi.cpp",
]
diff --git a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
index 3d960d501e42..5a235671e5c8 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
@@ -23,6 +23,7 @@ group("unittests") {
"Frontend:LLVMFrontendTests",
"FuzzMutate:FuzzMutateTests",
"IR:IRTests",
+ "InterfaceStub:InterfaceStubTests",
"LineEditor:LineEditorTests",
"Linker:LinkerTests",
"MC:MCTests",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/InterfaceStub/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/InterfaceStub/BUILD.gn
new file mode 100644
index 000000000000..cb508882778c
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/unittests/InterfaceStub/BUILD.gn
@@ -0,0 +1,9 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("InterfaceStubTests") {
+ deps = [
+ "//llvm/lib/InterfaceStub",
+ "//llvm/lib/Testing/Support",
+ ]
+ sources = [ "ELFYAMLTest.cpp" ]
+}
diff --git a/llvm/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn
index 8e51943b7e26..0ebeb4f773bb 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/TextAPI/BUILD.gn
@@ -6,7 +6,6 @@ unittest("TextAPITests") {
"//llvm/lib/TextAPI",
]
sources = [
- "ELFYAMLTest.cpp",
"TextStubV1Tests.cpp",
"TextStubV2Tests.cpp",
"TextStubV3Tests.cpp",
More information about the llvm-commits
mailing list