Introduce native support for MacOS ARM64

There's a new program named ape/ape-m1.c which will be used to build an
embeddable binary that can load ape and elf executables. The support is
mostly working so far, but still chasing down ABI issues.
This commit is contained in:
Justine Tunney 2023-05-18 19:05:08 -07:00
parent b852650c08
commit 1422e96b4e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
757 changed files with 2988 additions and 1321 deletions

View file

@ -102,7 +102,7 @@ static struct {
PY_TIMEOUT_T timeout_us; /* timeout in microseconds */
int repeat;
PyInterpreterState *interp;
int exit;
int exit_;
char *header;
size_t header_len;
/* The main thread always holds this lock. It is only released when
@ -622,7 +622,7 @@ faulthandler_thread(void *unused)
errmsg = _Py_DumpTracebackThreads(thread.fd, thread.interp, NULL);
ok = (errmsg == NULL);
if (thread.exit)
if (thread.exit_)
_exit(1);
} while (ok && thread.repeat);
@ -729,7 +729,7 @@ faulthandler_dump_traceback_later(PyObject *self,
thread.timeout_us = timeout_us;
thread.repeat = repeat;
thread.interp = tstate->interp;
thread.exit = exit;
thread.exit_ = exit;
thread.header = header;
thread.header_len = header_len;