From 4206af8f83ff74b8ba956377df1e2d28075f948b Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Sat, 4 May 2024 12:59:24 +0900 Subject: [PATCH] add /std:c++20 flag on win32 --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index a13bd81d..e3c80901 100644 --- a/setup.py +++ b/setup.py @@ -51,10 +51,12 @@ def __init__(self, *args, **kwargs): libraries = [] macros = [] +extra_compile_args = [] if sys.platform == "win32": libraries.append("ws2_32") macros = [("__LITTLE_ENDIAN__", "1")] + extra_compile_args = ["/std:c++20"] ext_modules = [] if not PYPY and not os.environ.get("MSGPACK_PUREPYTHON"): @@ -65,6 +67,7 @@ def __init__(self, *args, **kwargs): libraries=libraries, include_dirs=["."], define_macros=macros, + extra_compile_args=extra_compile_args, ) ) del libraries, macros