[pypy-commit] pypy default: drop -mmacosx-version-min=10.4 when building on Mac OS X
danchr
noreply at buildbot.pypy.org
Mon Jun 20 20:56:31 CEST 2011
Author: Dan Villiom Podlaski Christiansen <dan at cabo.dk>
Branch:
Changeset: r45031:f117157bb039
Date: 2011-06-10 16:02 +0200
http://bitbucket.org/pypy/pypy/changeset/f117157bb039/
Log: drop -mmacosx-version-min=10.4 when building on Mac OS X
Just passing -mmacosx-version-min isn't sufficient for ensuring
compatibility with 10.4. In order to make prevent the compiler and
linker from using anything introduced in a later OS, a sysroot
should be specified, pointing to an appropriate SDK.
However, PyPy as-is doesn't even run terribly well on the latest
(and most popular) release of Mac OS X. Supporting older releases
amounts to wishful thinking.
In theory, compiler and linker produce better code when targeting
the latest OS, but any such improvements will probably be minuscule.
diff --git a/pypy/translator/platform/darwin.py b/pypy/translator/platform/darwin.py
--- a/pypy/translator/platform/darwin.py
+++ b/pypy/translator/platform/darwin.py
@@ -68,12 +68,10 @@
class Darwin_i386(Darwin):
name = "darwin_i386"
- link_flags = ('-arch', 'i386', '-mmacosx-version-min=10.4')
- cflags = ('-arch', 'i386', '-O3', '-fomit-frame-pointer',
- '-mmacosx-version-min=10.4')
+ link_flags = ('-arch', 'i386')
+ cflags = ('-arch', 'i386', '-O3', '-fomit-frame-pointer')
class Darwin_x86_64(Darwin):
name = "darwin_x86_64"
- link_flags = ('-arch', 'x86_64', '-mmacosx-version-min=10.4')
- cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer',
- '-mmacosx-version-min=10.4')
+ link_flags = ('-arch', 'x86_64')
+ cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer')
More information about the pypy-commit
mailing list