Fix building on macOS ARM

This commit is contained in:
Kovid Goyal
2024-01-14 15:06:36 +05:30
parent a9111f9a40
commit 0e4c49a0d6
2 changed files with 3 additions and 1 deletions

View File

@@ -118,7 +118,6 @@ bool
init_simd(void *x) {
PyObject *module = (PyObject*)x;
if (PyModule_AddFunctions(module, module_methods) != 0) return false;
__builtin_cpu_init();
#define A(x, val) { Py_INCREF(Py_##val); if (0 != PyModule_AddObject(module, #x, Py_##val)) return false; }
#ifdef __APPLE__
#ifdef __arm64__