[pypy-issue] [issue1333] OS X compatibility

Kenny Levinsen tracker at bugs.pypy.org
Fri Nov 23 12:37:23 CET 2012


New submission from Kenny Levinsen <kennylevinsen at gmail.com>:

OS X builds do not provide any compatibility by default, causing builds 
translated on newer versions on OS X to lack any backwards compatibility.

The following diff provides compatibility down to 10.6 (change 10.6 with the 
version of choice):

diff -r fcb6b056f00e pypy/translator/platform/darwin.py
--- a/pypy/translator/platform/darwin.py        Thu Nov 22 13:52:20 2012 +0100
+++ b/pypy/translator/platform/darwin.py        Fri Nov 23 12:32:44 2012 +0100
@@ -61,8 +61,8 @@
 
 class Darwin_i386(Darwin):
     name = "darwin_i386"
-    link_flags = ('-arch', 'i386')
-    cflags = ('-arch', 'i386', '-O3', '-fomit-frame-pointer')
+    link_flags = ('-arch', 'i386', '-mmacosx-version-min=10.6')
+    cflags = ('-arch', 'i386', '-O3', '-fomit-frame-pointer', '-mmacosx-
version-min=10.6')
 
 class Darwin_PowerPC(Darwin):#xxx fixme, mwp
     name = "darwin_powerpc"
@@ -71,5 +71,5 @@
 
 class Darwin_x86_64(Darwin):
     name = "darwin_x86_64"
-    link_flags = ('-arch', 'x86_64')
-    cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer')
+    link_flags = ('-arch', 'x86_64', '-mmacosx-version-min=10.6')
+    cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer', '-mmacosx-
version-min=10.6')

----------
messages: 5021
nosy: joushou, pypy-issue
priority: bug
status: unread
title: OS X compatibility

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1333>
________________________________________


More information about the pypy-issue mailing list