apple-jit.patch 538 B

12345678910111213
  1. Index: cffi-1.15.1/c/_cffi_backend.c
  2. ===================================================================
  3. --- cffi-1.15.1.orig/c/_cffi_backend.c
  4. +++ cffi-1.15.1/c/_cffi_backend.c
  5. @@ -87,7 +87,7 @@
  6. * This is also used on macOS, provided we are executing on macOS 10.15 or
  7. * above. It's a mess because it needs runtime checks in that case.
  8. */
  9. -#ifdef __NetBSD__
  10. +#if defined(__NetBSD__) || (defined(__APPLE__) && !defined(FFI_AVAILABLE_APPLE))
  11. # define CFFI_CHECK_FFI_CLOSURE_ALLOC 1
  12. # define CFFI_CHECK_FFI_CLOSURE_ALLOC_MAYBE 1