Files
MINGW-packages/mingw-w64-python2/0860-mingw-build-optimized-ext.patch

16 lines
846 B
Diff

--- a/Lib/distutils/cygwinccompiler.py.orig 2014-06-30 07:05:25.000000000 +0500
+++ b/Lib/distutils/cygwinccompiler.py 2014-09-23 10:42:09.263600000 +0500
@@ -324,9 +324,9 @@
else:
no_cygwin = ''
- self.set_executables(compiler='gcc%s -O -Wall' % no_cygwin,
- compiler_so='gcc%s -mdll -O -Wall' % no_cygwin,
- compiler_cxx='g++%s -O -Wall' % no_cygwin,
+ self.set_executables(compiler='gcc%s -O2 -Wall' % no_cygwin,
+ compiler_so='gcc%s -mdll -O2 -Wall' % no_cygwin,
+ compiler_cxx='g++%s -O2 -Wall' % no_cygwin,
linker_exe='gcc%s' % no_cygwin,
linker_so='%s%s %s %s'
% (self.linker_dll, no_cygwin,