Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions setuptools/_distutils/compilers/C/cygwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,12 @@ def runtime_library_dir_option(self, dir):
# -- Miscellaneous methods -----------------------------------------

def _make_out_path(self, output_dir, strip_dir, src_name):
# use normcase to make sure '.rc' is really '.rc' and not '.RC'
norm_src_name = os.path.normcase(src_name)
return super()._make_out_path(output_dir, strip_dir, norm_src_name)
# Use normcase for case-insensitive extension lookup on Cygwin,
# where '.RC' should match '.rc' and '.S' should match '.s'.
return self._make_out_path_exts(
output_dir, strip_dir, os.path.normcase(src_name),
{os.path.normcase(k): v for k, v in super().out_extensions.items()},
)

@property
def out_extensions(self):
Expand Down