Skip to content

Commit

Permalink
distutils: mingw build optimized ext
Browse files Browse the repository at this point in the history
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
  • Loading branch information
Alexpux authored and lazka committed Aug 25, 2023
1 parent 53a5591 commit fd6bbfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/distutils/cygwinccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ def __init__(self, verbose=0, dry_run=0, force=0):
raise CCompilerError(
'Cygwin gcc cannot be used with --compiler=mingw32')

self.set_executables(compiler='gcc -O -Wall',
compiler_so='gcc -mdll -O -Wall',
compiler_cxx='g++ -O -Wall',
self.set_executables(compiler='gcc -O2 -Wall',
compiler_so='gcc -mdll -O2 -Wall',
compiler_cxx='g++ -O2 -Wall',
linker_exe='gcc',
linker_so='%s %s %s'
% (self.linker_dll, shared_option,
Expand Down

0 comments on commit fd6bbfe

Please sign in to comment.