You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
2c32af7f11
The released version of PyPy does not build (or work) on Big Sur, due to changes in how dyld works. So, we use CPython instead for building PyPy 2.7 on Big Sur, and apply a back-ported merge request[1]. While at it, I've applied a patch to force Thin LTO[2] so the overhead isn't quite so large, suppressed building native modules during the `build` stage, and removed some hacks related to platforms other than x86-64. (The port remains restricted to x86-64; I've added a note pointing to a blog requesting help for ARM64 support. A JIT targeting macOS on PowerPC isn't going to happen.) Fixes #61659 [1] https://foss.heptapod.net/pypy/pypy/-/merge_requests/798 [2] https://clang.llvm.org/docs/ThinLTO.html
13 lines
499 B
Diff
13 lines
499 B
Diff
diff --git rpython/translator/platform/posix.py rpython/translator/platform/posix.py
|
|
--- rpython/translator/platform/posix.py
|
|
+++ rpython/translator/platform/posix.py
|
|
@@ -137,7 +137,7 @@ class BasePosix(Platform):
|
|
|
|
# xxx check which compilers accept this option or not
|
|
if config and config.translation.lto:
|
|
- cflags = ('-flto',) + cflags
|
|
+ cflags = ('-flto=thin',) + cflags
|
|
|
|
m = GnuMakefile(path)
|
|
m.exe_name = path.join(exe_name.basename)
|