Skip to content

Commit a847459

Browse files
committed
Requires C++20 in python tests
1 parent 0263521 commit a847459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test_python/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def cpp_flag(compiler):
7878
"""Return the -std=c++17 compiler flag and errors when the flag is
7979
no available.
8080
"""
81-
if has_flag(compiler, '-std=c++17'):
82-
return '-std=c++17'
81+
if has_flag(compiler, '-std=c++20'):
82+
return '-std=c++20'
8383
else:
8484
raise RuntimeError('C++17 support is required by xtensor!')
8585

@@ -104,7 +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')
107+
opts.append('/std:c++20')
108108
for ext in self.extensions:
109109
ext.extra_compile_args = opts
110110
build_ext.build_extensions(self)

0 commit comments

Comments
 (0)