Author: Armin Rigo <[email protected]>
Branch: release-2.0.x
Changeset: r64000:bf82c2a60166
Date: 2013-05-12 08:42 +0200
http://bitbucket.org/pypy/pypy/changeset/bf82c2a60166/

Log:    Fix: pass the -O2 option by default to the C compiler. Previously,
        it was building any C code with the default -O0.

diff --git a/lib-python/2.7/distutils/sysconfig_pypy.py 
b/lib-python/2.7/distutils/sysconfig_pypy.py
--- a/lib-python/2.7/distutils/sysconfig_pypy.py
+++ b/lib-python/2.7/distutils/sysconfig_pypy.py
@@ -119,7 +119,7 @@
     optional C speedup components.
     """
     if compiler.compiler_type == "unix":
-        compiler.compiler_so.extend(['-fPIC', '-Wimplicit'])
+        compiler.compiler_so.extend(['-O2', '-fPIC', '-Wimplicit'])
         compiler.shared_lib_extension = get_config_var('SO')
         if "CFLAGS" in os.environ:
             cflags = os.environ["CFLAGS"]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to