Unbreak the x86-64 build

This commit is contained in:
Justine Tunney 2023-06-16 20:05:24 -07:00
parent 7bc20bff3e
commit 207e18a060
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
66 changed files with 443 additions and 117 deletions

View file

@ -412,7 +412,12 @@ PyInit_cosmo(void)
return !PyErr_Occurred() ? m : 0;
}
_Section(".rodata.pytab.1 //") const struct _inittab _PyImport_Inittab_cosmo = {
#ifdef __aarch64__
_Section(".rodata.pytab.1 //")
#else
_Section(".rodata.pytab.1")
#endif
const struct _inittab _PyImport_Inittab_cosmo = {
"cosmo",
PyInit_cosmo,
};

View file

@ -75,7 +75,12 @@ PyInit_xed(void)
return PyModule_Create(&xedmodule);
}
_Section(".rodata.pytab.1 //") const struct _inittab _PyImport_Inittab_xed = {
#ifdef __aarch64__
_Section(".rodata.pytab.1 //")
#else
_Section(".rodata.pytab.1")
#endif
const struct _inittab _PyImport_Inittab_xed = {
"xed",
PyInit_xed,
};

View file

@ -89,7 +89,12 @@ PyInit_xterm(void)
return PyModule_Create(&xtermmodule);
}
_Section(".rodata.pytab.1 //") const struct _inittab _PyImport_Inittab_xterm = {
#ifdef __aarch64__
_Section(".rodata.pytab.1 //")
#else
_Section(".rodata.pytab.1")
#endif
const struct _inittab _PyImport_Inittab_xterm = {
"xterm",
PyInit_xterm,
};