Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-5855: TLB prebuild fix

Ryan Kurtzbe0ca420eb90
diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/build.gradle b/Ghidra/Debug/Debugger-agent-dbgeng/build.gradle
index c458d51fa1..f7b318a5d8 100644
--- a/Ghidra/Debug/Debugger-agent-dbgeng/build.gradle
+++ b/Ghidra/Debug/Debugger-agent-dbgeng/build.gradle
@@ -42,7 +42,6 @@ tasks.assemblePyPackage {
}
task buildTlb(type: Exec) {
- assert isCurrentX86_64() && isCurrentWindows() : "Can only build TLB on Windows x86"
def tmpBatch = file("build/buildTlb.bat")
def idl = file("src/main/py/src/ghidradbg/dbgmodel/DbgModel.idl")
@@ -51,6 +50,7 @@ task buildTlb(type: Exec) {
outputs.file(tlb)
doFirst {
+ assert isCurrentX86_64() && isCurrentWindows() : "Can only build TLB on Windows x86"
file(tlb).parentFile.mkdirs()
def midlCmd = "midl /tlb \"${tlb}\" \"${idl}\""
println "Executing: " + midlCmd
@@ -69,7 +69,6 @@ task buildTlb(type: Exec) {
}
task prebuildTlb(type: Copy) {
- assert file(BIN_REPO).exists() : "Bin repo doesn't exist"
dependsOn buildTlb
@@ -77,6 +76,7 @@ task prebuildTlb(type: Copy) {
into binRepoFile.parentFile
doFirst {
+ assert file(BIN_REPO).exists() : "Bin repo doesn't exist"
file(binRepoFile).parentFile.mkdirs()
}
}