Files
Dan Villiom Podlaski Christiansen 2c32af7f11 pypy: upgrade to 7.3.3; fix big sur build
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
2021-01-15 01:48:29 +01:00

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)