summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--py/nlrthumb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/nlrthumb.c b/py/nlrthumb.c
index c28302355..99061e62c 100644
--- a/py/nlrthumb.c
+++ b/py/nlrthumb.c
@@ -72,7 +72,11 @@ __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) {
".align 2 \n"
"nlr_push_tail_var: .word nlr_push_tail \n"
#else
+ #if defined(__APPLE__) || defined(__MACH__)
+ "b _nlr_push_tail \n" // do the rest in C
+ #else
"b nlr_push_tail \n" // do the rest in C
+ #endif
#endif
);