summarylogtreecommitdiffstats
path: root/0022-sysconfig-MINGW-build-extensions-with-GCC.patch
blob: a7e38fd4485b5d14e2cdea4b1ac06f8397964077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 81df7b055662ed80b952de911ec0c25df3e40e1f Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Tue, 21 Sep 2021 20:52:42 +0200
Subject: [PATCH 022/N] sysconfig: MINGW build extensions with GCC

---
 Lib/sysconfig.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 45eab2a..42de9b3 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -657,6 +657,8 @@ def get_platform():
 
     """
     if os.name == 'nt':
+        if 'GCC' in sys.version:
+            return 'mingw'
         if 'amd64' in sys.version.lower():
             return 'win-amd64'
         if '(arm)' in sys.version.lower():
-- 
2.33.0