[pypy-commit] pypy default: Fix: pass the -O2 option by default to the C compiler. Previously,
arigo
noreply at buildbot.pypy.org
Sun May 12 08:43:26 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r63999:9ffefaf25ca3
Date: 2013-05-12 08:42 +0200
http://bitbucket.org/pypy/pypy/changeset/9ffefaf25ca3/
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"].split()
More information about the pypy-commit
mailing list