[pypy-svn] r49902 - pypy/dist/pypy/translator/tool

rxe at codespeak.net rxe at codespeak.net
Tue Dec 18 21:45:58 CET 2007


Author: rxe
Date: Tue Dec 18 21:45:57 2007
New Revision: 49902

Modified:
   pypy/dist/pypy/translator/tool/cbuild.py
Log:
-O flag doesnt do link time optimizations.  add -O3 and -fomit-frame-pointer for darwin also

Modified: pypy/dist/pypy/translator/tool/cbuild.py
==============================================================================
--- pypy/dist/pypy/translator/tool/cbuild.py	(original)
+++ pypy/dist/pypy/translator/tool/cbuild.py	Tue Dec 18 21:45:57 2007
@@ -368,7 +368,7 @@
             if 'pthread' not in self.libraries:
                 self.libraries.append('pthread')
             self.compile_extra += ['-O3', '-fomit-frame-pointer', '-pthread']
-            self.link_extra += ['-O3', '-pthread']
+            self.link_extra += ['-pthread']
         if sys.platform == 'win32':
             self.link_extra += ['/DEBUG'] # generate .pdb file
         if sys.platform == 'darwin':
@@ -380,7 +380,7 @@
                 if s + 'lib' not in self.library_dirs and \
                    os.path.exists(s + 'lib'):
                     self.library_dirs.append(s + 'lib')
-            self.compile_extra += ['-O2']
+            self.compile_extra += ['-O3', '-fomit-frame-pointer']
 
         if outputfilename is None:
             self.outputfilename = py.path.local(cfilenames[0]).new(ext=ext)



More information about the Pypy-commit mailing list