Skip to content

Commit fd6bbfe

Browse files
Alexpuxlazka
authored andcommitted
distutils: mingw build optimized ext
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
1 parent 53a5591 commit fd6bbfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/distutils/cygwinccompiler.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ def __init__(self, verbose=0, dry_run=0, force=0):
303303
raise CCompilerError(
304304
'Cygwin gcc cannot be used with --compiler=mingw32')
305305

306-
self.set_executables(compiler='gcc -O -Wall',
307-
compiler_so='gcc -mdll -O -Wall',
308-
compiler_cxx='g++ -O -Wall',
306+
self.set_executables(compiler='gcc -O2 -Wall',
307+
compiler_so='gcc -mdll -O2 -Wall',
308+
compiler_cxx='g++ -O2 -Wall',
309309
linker_exe='gcc',
310310
linker_so='%s %s %s'
311311
% (self.linker_dll, shared_option,

0 commit comments

Comments
 (0)