Skip to content

Commit 52620c6

Browse files
asmfreakpfalcon
authored andcommitted
py/nlrx86: Fix building for Android/x86.
Tested using Clang on self-hosted Termux environment https://termux.com/.
1 parent eea5fcc commit 52620c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/nlrx86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ unsigned int nlr_push(nlr_buf_t *nlr) {
5555
// by default.
5656
// TODE: Better support for various x86 calling conventions
5757
// (unfortunately, __attribute__((naked)) is not supported on x86).
58-
#ifndef __ZEPHYR__
58+
#if !(defined(__ZEPHYR__) || defined(__ANDROID__))
5959
"pop %ebp \n" // undo function's prelude
6060
#endif
6161
"mov 4(%esp), %edx \n" // load nlr_buf

0 commit comments

Comments
 (0)