Skip to content

Commit 4206af8

Browse files
committed
add /std:c++20 flag on win32
1 parent 9c19133 commit 4206af8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ def __init__(self, *args, **kwargs):
5151

5252
libraries = []
5353
macros = []
54+
extra_compile_args = []
5455

5556
if sys.platform == "win32":
5657
libraries.append("ws2_32")
5758
macros = [("__LITTLE_ENDIAN__", "1")]
59+
extra_compile_args = ["/std:c++20"]
5860

5961
ext_modules = []
6062
if not PYPY and not os.environ.get("MSGPACK_PUREPYTHON"):
@@ -65,6 +67,7 @@ def __init__(self, *args, **kwargs):
6567
libraries=libraries,
6668
include_dirs=["."],
6769
define_macros=macros,
70+
extra_compile_args=extra_compile_args,
6871
)
6972
)
7073
del libraries, macros

0 commit comments

Comments
 (0)