Skip to content

Commit 7aeb9cc

Browse files
committed
Check C++11 flags in mingw32 compiler
1 parent 2ed5a68 commit 7aeb9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class BuildExt(build_ext):
7878
def build_extensions(self):
7979
ct = self.compiler.compiler_type
8080
opts = self.c_opts.get(ct, [])
81-
if ct == 'unix':
81+
if ct in ['unix', 'mingw32']:
8282
opts.append('-DVERSION_INFO="%s"' % self.distribution.get_version())
8383
opts.append(cpp_flag(self.compiler))
8484
if has_flag(self.compiler, '-fvisibility=hidden'):

0 commit comments

Comments
 (0)