We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2db53d commit 1259db6Copy full SHA for 1259db6
pybind11/setup_helpers.py
@@ -47,6 +47,7 @@
47
import threading
48
import platform
49
import warnings
50
+import sysconfig
51
52
try:
53
from setuptools.command.build_ext import build_ext as _build_ext
@@ -59,7 +60,7 @@
59
60
import distutils.ccompiler
61
62
-WIN = sys.platform.startswith("win32")
63
+WIN = sys.platform.startswith("win32") and sysconfig.get_platform() != "mingw"
64
PY2 = sys.version_info[0] < 3
65
MACOS = sys.platform.startswith("darwin")
66
STD_TMPL = "/std:c++{}" if WIN else "-std=c++{}"
0 commit comments