Skip to content

Instantly share code, notes, and snippets.

@fx-kirin
Last active August 7, 2018 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fx-kirin/44deefd8bf9966212e30b01dde9945e8 to your computer and use it in GitHub Desktop.
Save fx-kirin/44deefd8bf9966212e30b01dde9945e8 to your computer and use it in GitHub Desktop.
Python 3.6 MingW 32 Compile environment.
--- cygwinccompiler.py
+++ cygwinccompiler.py
@@ -82,7 +82,18 @@ 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 msc_ver == '1900':
+ # Visual Studio 2015 / Visual C++ 14.0
+ # "msvcr140.dll no longer exists" http://blogs.msdn.com/b/vcblog/archive/2014/06/03/visual-studio-14-ctp.aspx
+ return ['msvcr100']
else:
+ # to do: can we make this futureproof?
raise ValueError("Unknown MS Compiler version %s " % msc_ver)
@fx-kirin
Copy link
Author

fx-kirin commented Aug 7, 2018

I don't think this is a good idea but it works.

@fx-kirin
Copy link
Author

fx-kirin commented Aug 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment