changes for M1

This commit is contained in:
Tom Nelson 2021-01-15 17:38:50 +00:00 committed by ghidra1
parent 92b2405c53
commit 31b3db431e
3 changed files with 19 additions and 0 deletions

View file

@ -265,6 +265,7 @@ String getCurrentPlatformName() {
boolean isX86_32 = archName.equals("x86") || archName.equals("i386");
boolean isX86_64 = archName.equals("x86_64") || archName.equals("amd64");
boolean isAARCH_64 = archName.equals("aarch64");
if (osName.startsWith("Windows")) {
if (isX86_32) {
@ -283,6 +284,9 @@ String getCurrentPlatformName() {
if (isX86_64) {
return 'osx64'
}
if (isAARCH_64) {
return 'aarch64'
}
}
throw new GradleException("Unrecognized current platform -> osName = $osName, archName = $archName")
}