Commits

Armin Rigo committed 9ffefaf

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

Comments (0)

Files changed (1)

lib-python/2.7/distutils/sysconfig_pypy.py

     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()