mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 22:17:55 -05:00
GT-3328 minor revisions to sleigh options processing per review
This commit is contained in:
@@ -57,7 +57,8 @@ dependencies {
|
||||
*****************************************************************************************/
|
||||
def checkSleighCompileOptions() {
|
||||
sleighCompileOptions.each { a ->
|
||||
assert !(a.startsWith("-a") || a.startsWith("-i")) : "Invalid sleighCompileOption: ${a}"
|
||||
def arg = a.trim()
|
||||
assert !(arg.startsWith("-a") || arg.startsWith("-i")) : "Invalid sleighCompileOption: ${arg}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -215,10 +216,7 @@ saveSleighArgs.inputs.files (taskInputs)
|
||||
*
|
||||
*****************************************************************************************/
|
||||
def getProjectReposRootPath() {
|
||||
def rootPath = rootProject.projectDir.absolutePath
|
||||
int index = rootPath.lastIndexOf(File.separator)
|
||||
rootPath = rootPath.substring(0, index+1)
|
||||
return rootPath
|
||||
return rootProject.projectDir.getParent() + File.separator
|
||||
}
|
||||
|
||||
/*****************************************************************************************
|
||||
@@ -235,6 +233,7 @@ def getProjectReposRootPath() {
|
||||
*
|
||||
*****************************************************************************************/
|
||||
def resolveSleighArg(String arg, boolean useDevPath) {
|
||||
arg = arg.trim()
|
||||
int index = arg.indexOf("%%")
|
||||
if (index < 0) {
|
||||
return arg
|
||||
|
||||
Reference in New Issue
Block a user