From dd6f9a32358a0881fe520541f07ec44a5b7c17e3 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 27 Mar 2022 13:11:09 +0100 Subject: [PATCH] Fix angelscript build for arm64 --- Sources/AngelScript/source/as_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/AngelScript/source/as_config.h b/Sources/AngelScript/source/as_config.h index 8c0160c77..b3af4d8b6 100755 --- a/Sources/AngelScript/source/as_config.h +++ b/Sources/AngelScript/source/as_config.h @@ -728,7 +728,7 @@ #undef STDCALL #define STDCALL - #elif (defined(__arm64__)) + #elif (defined(__arm64__) || defined(__aarch64__)) // The IPhone 5S+ uses an ARM64 processor // AngelScript currently doesn't support native calling @@ -750,7 +750,7 @@ #undef COMPLEX_RETURN_MASK #define COMPLEX_RETURN_MASK (asOBJ_APP_CLASS_DESTRUCTOR | asOBJ_APP_CLASS_COPY_CONSTRUCTOR | asOBJ_APP_ARRAY) - #elif defined(__LP64__) && !defined(__ppc__) && !defined(__PPC__) && !defined(__arm64__) + #elif defined(__LP64__) && !defined(__ppc__) && !defined(__PPC__) && !defined(__arm64__) && !defined(__aarch64__) // http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/LowLevelABI/140-x86-64_Function_Calling_Conventions/x86_64.html#//apple_ref/doc/uid/TP40005035-SW1 #define AS_X64_GCC #undef AS_NO_THISCALL_FUNCTOR_METHOD @@ -849,7 +849,7 @@ #define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK #define AS_X86 #undef AS_NO_THISCALL_FUNCTOR_METHOD - #elif defined(__LP64__) && !defined(__arm64__) && !defined(__PPC64__) + #elif defined(__LP64__) && !defined(__arm64__) && !defined(__aarch64__) && !defined(__PPC64__) #define AS_X64_GCC #undef AS_NO_THISCALL_FUNCTOR_METHOD #define HAS_128_BIT_PRIMITIVES