Kaydet (Commit) 2400e930 authored tarafından Hye-Shik Chang's avatar Hye-Shik Chang

SF #877165: Give an info about what C++ compiler command should be

used in cygwin and mingw32. (Reported by Michael Droettboom)
üst 58fc5d08
...@@ -108,6 +108,7 @@ class CygwinCCompiler (UnixCCompiler): ...@@ -108,6 +108,7 @@ class CygwinCCompiler (UnixCCompiler):
# XXX optimization, warnings etc. should be customizable. # XXX optimization, warnings etc. should be customizable.
self.set_executables(compiler='gcc -mcygwin -O -Wall', self.set_executables(compiler='gcc -mcygwin -O -Wall',
compiler_so='gcc -mcygwin -mdll -O -Wall', compiler_so='gcc -mcygwin -mdll -O -Wall',
compiler_cxx='g++ -mcygwin -O -Wall',
linker_exe='gcc -mcygwin', linker_exe='gcc -mcygwin',
linker_so=('%s -mcygwin %s' % linker_so=('%s -mcygwin %s' %
(self.linker_dll, shared_option))) (self.linker_dll, shared_option)))
...@@ -295,6 +296,7 @@ class Mingw32CCompiler (CygwinCCompiler): ...@@ -295,6 +296,7 @@ class Mingw32CCompiler (CygwinCCompiler):
self.set_executables(compiler='gcc -mno-cygwin -O -Wall', self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
compiler_so='gcc -mno-cygwin -mdll -O -Wall', compiler_so='gcc -mno-cygwin -mdll -O -Wall',
compiler_cxx='g++ -mno-cygwin -O -Wall',
linker_exe='gcc -mno-cygwin', linker_exe='gcc -mno-cygwin',
linker_so='%s -mno-cygwin %s %s' linker_so='%s -mno-cygwin %s %s'
% (self.linker_dll, shared_option, % (self.linker_dll, shared_option,
......
...@@ -322,6 +322,9 @@ Extension modules ...@@ -322,6 +322,9 @@ Extension modules
Library Library
------- -------
- Fixed #877165: distutils now picks the right C++ compiler command
on cygwin and mingw32.
- urllib.urlopen().readline() now handles HTTP/0.9 correctly. - urllib.urlopen().readline() now handles HTTP/0.9 correctly.
- refactored site.py into functions. Also wrote regression tests for the - refactored site.py into functions. Also wrote regression tests for the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment