Skip to content

Commit 849236e

Browse files
committed
sysconfig: MINGW build extensions with GCC
1 parent a1dcbd3 commit 849236e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/sysconfig.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ def get_platform():
757757
758758
"""
759759
if os.name == 'nt':
760+
if 'GCC' in sys.version:
761+
return 'mingw'
760762
if 'amd64' in sys.version.lower():
761763
return 'win-amd64'
762764
if '(arm)' in sys.version.lower():

0 commit comments

Comments
 (0)