Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a34dbe0

Browse files
committed
Patch #403947: On Cygwin, use the Unix compiler class, and not
the Cygwin-specific compiler class. (According to Jason Tishler, cygwinccompiler needs some work to handle the differences in Cygwin- and MSVC-Python. Makefile and config files are currently ignored by cygwinccompiler, as it was written to support cygwin for extensions which are intended to be used with the standard MSVC built Python.)
1 parent 4db62b1 commit a34dbe0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/distutils/ccompiler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,10 @@ def mkpath (self, name, mode=0777):
842842
_default_compilers = (
843843

844844
# Platform string mappings
845-
('cygwin.*', 'cygwin'),
845+
846+
# on a cygwin built python we can use gcc like an ordinary UNIXish
847+
# compiler
848+
('cygwin.*', 'unix'),
846849

847850
# OS name mappings
848851
('posix', 'unix'),

0 commit comments

Comments
 (0)