mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 10:01:42 +00:00
[gn build] (manually) port bcdd40f802
This commit is contained in:
parent
bcdd40f802
commit
0bd9d9aa3c
@ -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") {
|
||||
|
@ -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" ]
|
||||
}
|
||||
|
10
llvm/utils/gn/secondary/llvm/unittests/MC/SystemZ/BUILD.gn
Normal file
10
llvm/utils/gn/secondary/llvm/unittests/MC/SystemZ/BUILD.gn
Normal file
@ -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" ]
|
||||
}
|
Loading…
Reference in New Issue
Block a user