Skip to content
Closed
Prev Previous commit
Next Next commit
fixup! use system libffi for older releases of Mac OS
  • Loading branch information
lawrence-danna-apple committed Jul 16, 2020
commit e160a5953c2e10fbbd6e68b94408a66a37e65a94
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ def configure_ctypes(self, ext):
def detect_ctypes(self):
# Thomas Heller's _ctypes module

if (not sysconfig.get_config_var("LIBFFI_INCLUDEDIR") and
if (not sysconfig.get_config_var("LIBFFI_INCLUDEDIR") and MACOS and
(is_macosx_at_least((10,15)) or '-arch arm64' in sysconfig.get_config_var("CFLAGS"))):
self.use_system_libffi = True
else:
Expand Down