Merge pull request #35 from GTNewHorizons/oc-arm64

add support for aarch64
This commit is contained in:
Martin Robertz 2021-11-25 18:52:26 +01:00 committed by GitHub
commit 3c87db0d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,7 @@ abstract class LuaStateFactory {
else if (SystemUtils.IS_OS_FREE_BSD && Architecture.IS_OS_X86) "native.32.bsd.so"
else if (SystemUtils.IS_OS_LINUX && Architecture.IS_OS_ARM) "native.32.arm.so"
else if (SystemUtils.IS_OS_LINUX && Architecture.IS_OS_ARM) "native.64.arm.so"
else if (SystemUtils.IS_OS_LINUX && Architecture.IS_OS_X64) "native.64.so"
else if (SystemUtils.IS_OS_LINUX && Architecture.IS_OS_X86) "native.32.so"
@ -409,6 +410,8 @@ abstract class LuaStateFactory {
val IS_OS_ARM = isOSArchMatch("arm")
val IS_OS_A64 = isOSArchMatch("aarch64")
val IS_OS_X86 = isOSArchMatch("x86") || isOSArchMatch("i386")
val IS_OS_X64 = isOSArchMatch("x86_64") || isOSArchMatch("amd64")