Skip to content

Commit cc7e825

Browse files
committed
Set c++17 on Windows
1 parent 9d60272 commit cc7e825

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test_python/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def has_flag(compiler, flagname):
7575

7676

7777
def cpp_flag(compiler):
78-
"""Return the -std=c++14 compiler flag and errors when the flag is
78+
"""Return the -std=c++17 compiler flag and errors when the flag is
7979
no available.
8080
"""
8181
if has_flag(compiler, '-std=c++17'):
@@ -104,6 +104,7 @@ def build_extensions(self):
104104
opts.append('-fvisibility=hidden')
105105
elif ct == 'msvc':
106106
opts.append('/DVERSION_INFO=\\"%s\\"' % self.distribution.get_version())
107+
opts.append('/std:c++17')
107108
for ext in self.extensions:
108109
ext.extra_compile_args = opts
109110
build_ext.build_extensions(self)

0 commit comments

Comments
 (0)