diff options
| author | GalaxySnail <me@glxys.nl> | 2023-02-07 02:47:07 +0800 |
|---|---|---|
| committer | GalaxySnail <me@glxys.nl> | 2023-02-07 02:47:07 +0800 |
| commit | e2264e5d74e6bfea75005fe8c67a31ff670b2bb9 (patch) | |
| tree | ce20d2a3e884b3184081c75303b31a0112fbb099 | |
| parent | c2bc8135db186a007d02770af3419dc012404e6f (diff) | |
| download | python-setuptools-git-e2264e5d74e6bfea75005fe8c67a31ff670b2bb9.tar.gz | |
Fix MinGW-w64 segmentation fault
| -rw-r--r-- | distutils/cygwinccompiler.py | 2 | ||||
| -rw-r--r-- | distutils/tests/test_cygwinccompiler.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/distutils/cygwinccompiler.py b/distutils/cygwinccompiler.py index 3125d9dc..47efa377 100644 --- a/distutils/cygwinccompiler.py +++ b/distutils/cygwinccompiler.py @@ -43,7 +43,7 @@ _msvcr_lookup = RangeMap.left( # VS2013 / MSVC 12.0 1800: ['msvcr120'], # VS2015 / MSVC 14.0 - 1900: ['ucrt', 'vcruntime140'], + 1900: ['vcruntime140'], 2000: RangeMap.undefined_value, }, ) diff --git a/distutils/tests/test_cygwinccompiler.py b/distutils/tests/test_cygwinccompiler.py index 6c29b743..6fb449a6 100644 --- a/distutils/tests/test_cygwinccompiler.py +++ b/distutils/tests/test_cygwinccompiler.py @@ -106,7 +106,7 @@ class TestCygwinCCompiler(support.TempdirManager): '3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 18:46:30) ' '[MSC v.1929 32 bit (Intel)]' ) - assert get_msvcr() == ['ucrt', 'vcruntime140'] + assert get_msvcr() == ['vcruntime140'] # unknown sys.version = ( |
