--- a/setup.py
+++ b/setup.py
@@ -20,8 +20,9 @@
 from setuptools import Extension
 from setuptools import setup
 from setuptools.command.build_py import build_py as build_py_orig
+import sys
 
-if platform.system() == "Windows":
+if platform.system() == "Windows" and 'MSC' in sys.version:
   COMPILE_ARGS = [
       "/std:c++17",
       "/DEIGEN_MPL2_ONLY",
