Skip to content

Commit add2078

Browse files
GeoffroyAubeyUnityAlex
authored andcommitted
Use iOS abi on macOS arm64
Signed-off-by: Tautvydas Žilys <[email protected]>
1 parent 6ec341a commit add2078

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mono/mini/mini-arm64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ mono_arm_emit_aotconst (gpointer ji, guint8 *code, guint8 *code_start, int dreg,
761761
gboolean
762762
mono_arch_have_fast_tls (void)
763763
{
764-
#ifdef TARGET_IOS
764+
#if defined(TARGET_IOS) || defined(TARGET_OSX)
765765
return FALSE;
766766
#else
767767
return TRUE;

mono/mini/mini-arm64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ typedef struct {
185185
// can pass context to generics or interfaces?
186186
#define MONO_ARCH_HAVE_VOLATILE_NON_PARAM_REGISTER 1
187187

188-
#ifdef TARGET_IOS
188+
#if defined(TARGET_IOS) || defined(TARGET_OSX)
189189

190190
#define MONO_ARCH_REDZONE_SIZE 128
191191

@@ -195,7 +195,7 @@ typedef struct {
195195

196196
#endif
197197

198-
#if defined(TARGET_IOS) || defined(TARGET_WATCHOS)
198+
#if defined(TARGET_IOS) || defined(TARGET_WATCHOS) || defined(TARGET_OSX)
199199
#define MONO_ARCH_HAVE_UNWIND_BACKTRACE 1
200200
#endif
201201

0 commit comments

Comments
 (0)