[llvm] 0bd9d9a - [gn build] (manually) port bcdd40f802a5
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 12 09:16:05 PST 2021
Author: Nico Weber
Date: 2021-03-12T12:15:52-05:00
New Revision: 0bd9d9aa3ce06268b565369b9e71b636792d35e0
URL: https://github.com/llvm/llvm-project/commit/0bd9d9aa3ce06268b565369b9e71b636792d35e0
DIFF: https://github.com/llvm/llvm-project/commit/0bd9d9aa3ce06268b565369b9e71b636792d35e0.diff
LOG: [gn build] (manually) port bcdd40f802a5
Added:
llvm/utils/gn/secondary/llvm/unittests/MC/SystemZ/BUILD.gn
Modified:
llvm/utils/gn/secondary/llvm/lib/Target/targets.gni
llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/lib/Target/targets.gni b/llvm/utils/gn/secondary/llvm/lib/Target/targets.gni
index 102040c2fa82..22da518ea1fb 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Target/targets.gni
+++ b/llvm/utils/gn/secondary/llvm/lib/Target/targets.gni
@@ -49,6 +49,7 @@ llvm_build_ARM = false
llvm_build_BPF = false
llvm_build_Mips = false
llvm_build_PowerPC = false
+llvm_build_SystemZ = false
llvm_build_WebAssembly = false
llvm_build_X86 = false
foreach(target, llvm_targets_to_build) {
@@ -64,6 +65,8 @@ foreach(target, llvm_targets_to_build) {
llvm_build_Mips = true
} else if (target == "PowerPC") {
llvm_build_PowerPC = true
+ } else if (target == "SystemZ") {
+ llvm_build_SystemZ = true
} else if (target == "WebAssembly") {
llvm_build_WebAssembly = true
} else if (target == "X86") {
diff --git a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
index 4942f4b14459..8379df1c6955 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
@@ -80,6 +80,9 @@ group("unittests") {
"tools/llvm-exegesis/PowerPC:LLVMExegesisPowerPCTests",
]
}
+ if (llvm_build_SystemZ) {
+ deps += [ "MC/SystemZ:SystemZAsmLexer" ]
+ }
if (llvm_build_WebAssembly) {
deps += [ "Target/WebAssembly:WebAssemblyTests" ]
}
diff --git a/llvm/utils/gn/secondary/llvm/unittests/MC/SystemZ/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/MC/SystemZ/BUILD.gn
new file mode 100644
index 000000000000..d804446000d1
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/unittests/MC/SystemZ/BUILD.gn
@@ -0,0 +1,10 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("SystemZAsmLexer") {
+ deps = [
+ "//llvm/lib/MC",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target/SystemZ",
+ ]
+ sources = [ "SystemZAsmLexerTest.cpp" ]
+}
More information about the llvm-commits
mailing list