summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-06-05 18:37:53 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2004-06-05 18:37:53 (GMT)
commit2400e93057d284f65e062e03df92b2f5e57179ee (patch)
tree7310ad70bbf475f7d73a610a2d4883651ebf404b
parent58fc5d08134470f6e5d9458c820c3c971e2634fb (diff)
downloadcpython-2400e93057d284f65e062e03df92b2f5e57179ee.zip
cpython-2400e93057d284f65e062e03df92b2f5e57179ee.tar.gz
cpython-2400e93057d284f65e062e03df92b2f5e57179ee.tar.bz2
SF #877165: Give an info about what C++ compiler command should be
used in cygwin and mingw32. (Reported by Michael Droettboom)
-rw-r--r--Lib/distutils/cygwinccompiler.py2
-rw-r--r--Misc/NEWS3
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py
index 94b8b86..0101bae 100644
--- a/Lib/distutils/cygwinccompiler.py
+++ b/Lib/distutils/cygwinccompiler.py
@@ -108,6 +108,7 @@ class CygwinCCompiler (UnixCCompiler):
# XXX optimization, warnings etc. should be customizable.
self.set_executables(compiler='gcc -mcygwin -O -Wall',
compiler_so='gcc -mcygwin -mdll -O -Wall',
+ compiler_cxx='g++ -mcygwin -O -Wall',
linker_exe='gcc -mcygwin',
linker_so=('%s -mcygwin %s' %
(self.linker_dll, shared_option)))
@@ -295,6 +296,7 @@ class Mingw32CCompiler (CygwinCCompiler):
self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
compiler_so='gcc -mno-cygwin -mdll -O -Wall',
+ compiler_cxx='g++ -mno-cygwin -O -Wall',
linker_exe='gcc -mno-cygwin',
linker_so='%s -mno-cygwin %s %s'
% (self.linker_dll, shared_option,
diff --git a/Misc/NEWS b/Misc/NEWS
index 7584d45..35a9c19 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -322,6 +322,9 @@ Extension modules
Library
-------
+- Fixed #877165: distutils now picks the right C++ compiler command
+ on cygwin and mingw32.
+
- urllib.urlopen().readline() now handles HTTP/0.9 correctly.
- refactored site.py into functions. Also wrote regression tests for the