Files
nixpkgs/pkgs/development/interpreters/python/pypy/darwin_version_min.patch
T
Niklas Korz b92751652e pypy: remove explicit darwin minimum SDK
PyPy sets an explicit minimum SDK version for darwin that is much older
than what we we default to on nixpkgs (currently 14.0).
Simply removing the explicit flag makes it use our default instead.

This fixes a build failure where PyPy tries to access APIs that are not
available in the macOS SDK it is targetting.
This is technically not relevant for upstream as this is an opt-in
warning which we have recently enabled by default (as error) on
nixpkgs, but they too should bump the minimum target to at least 10.15
from their current target of 10.13.
2025-12-16 21:13:05 +01:00

20 lines
707 B
Diff

diff --git a/rpython/translator/platform/darwin.py b/rpython/translator/platform/darwin.py
index 8c824a8459..f407fb6c07 100644
--- a/rpython/translator/platform/darwin.py
+++ b/rpython/translator/platform/darwin.py
@@ -26,12 +26,12 @@ class Darwin(posix.BasePosix):
standalone_only = ('-mdynamic-no-pic',)
shared_only = ()
- link_flags = (DARWIN_VERSION_MIN,)
+ link_flags = ()
cflags = ('-O3',
'-fomit-frame-pointer',
# The parser turns 'const char *const *includes' into 'const const char **includes'
'-Wno-duplicate-decl-specifier',
- DARWIN_VERSION_MIN,)
+ )
so_ext = 'dylib'
DEFAULT_CC = 'clang'