Skip to content

Commit 5b7aa29

Browse files
committed
py: Fix nlr mp_state_ctx symbol error for Mac.
1 parent 19b3fea commit 5b7aa29

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

py/nlrx64.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
// the offset of nlr_top within mp_state_ctx_t
3636
#define NLR_TOP_OFFSET (2 * 8)
3737

38+
#if defined(__APPLE__) && defined(__MACH__)
39+
#define NLR_TOP (_mp_state_ctx + NLR_TOP_OFFSET)
40+
#else
3841
#define NLR_TOP (mp_state_ctx + NLR_TOP_OFFSET)
42+
#endif
3943

4044
.file "nlr.s"
4145
.text

0 commit comments

Comments
 (0)