Skip to content

Commit

Permalink
Update msc_ver detection
Browse files Browse the repository at this point in the history
  • Loading branch information
imba-tjd committed Nov 15, 2021
1 parent b733057 commit ee78e84
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions distutils/cygwinccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ def get_msvcr():
elif msc_ver == '1600':
# VS2010 / MSVC 10.0
return ['msvcr100']
elif msc_ver == '1700':
# Visual Studio 2012 / Visual C++ 11.0
return ['msvcr110']
elif msc_ver == '1800':
# Visual Studio 2013 / Visual C++ 12.0
return ['msvcr120']
elif int(msc_ver) >= 1900 and int(msc_ver) < 2000:
# Visual Studio 2015 / Visual C++ 14.0
return ['vcruntime140']
else:
raise ValueError("Unknown MS Compiler version %s " % msc_ver)

Expand Down

0 comments on commit ee78e84

Please sign in to comment.