From 89962b76fcc4a188c775aac7a88f283d6cac58e8 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 18 Sep 2018 16:27:54 -0500 Subject: [PATCH] Add C++11 flag for mingw32 too --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 46666608..c3e5971b 100644 --- a/setup.py +++ b/setup.py @@ -95,7 +95,7 @@ class BuildExt(build_ext): def build_extensions(self): ct = self.compiler.compiler_type opts = self.c_opts.get(ct, []) - if ct == 'unix': + if ct in ['unix', 'mingw32']: opts.append('-DVERSION_INFO="%s"' % self.distribution.get_version()) opts.append(cpp_flag(self.compiler)) if has_flag(self.compiler, '-fvisibility=hidden'): -- GitLab