]> granicus.if.org Git - python/commitdiff
SF #877165: Give an info about what C++ compiler command should be
authorHye-Shik Chang <hyeshik@gmail.com>
Sat, 5 Jun 2004 18:37:53 +0000 (18:37 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Sat, 5 Jun 2004 18:37:53 +0000 (18:37 +0000)
used in cygwin and mingw32. (Reported by Michael Droettboom)

Lib/distutils/cygwinccompiler.py
Misc/NEWS

index 94b8b86b6d708294479953fed62743914cfb193f..0101bae5b922ae55e1fbbbf76fa4c9d165b5c185 100644 (file)
@@ -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,
index 7584d456fd182d600962cd1142f61887b27aacd3..35a9c19cbcdf07fac93ff0ed4ad2167cb0a1e236 100644 (file)
--- 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