Skip to content

Commit 25df308

Browse files
committed
Fixup for macOS builds
1 parent 859ff98 commit 25df308

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Python/asm_trampoline_aarch64.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#endif
3737

3838
.text
39+
#if defined(__aarch64__) && defined(__AARCH64EL__) && !defined(__ILP32__)
3940
#if defined(__APPLE__)
4041
.globl __Py_trampoline_func_start
4142
__Py_trampoline_func_start:
@@ -73,3 +74,4 @@ _Py_trampoline_func_end:
7374
.long 0; /* padding for 8 byte alignment */
7475
.popsection; /* end the section */
7576
#endif
77+
#endif // __aarch64__ && __AARCH64EL__ && !__ILP32__

Python/asm_trampoline_x86_64.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.text
2+
#ifdef __x86_64__
23
#if defined(__APPLE__)
34
.globl __Py_trampoline_func_start
45
__Py_trampoline_func_start:
@@ -41,3 +42,4 @@ _Py_trampoline_func_end:
4142
.align 8
4243
4:
4344
#endif
45+
#endif // __x86_64__

0 commit comments

Comments
 (0)