Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add /std:c++20 flag on win32
  • Loading branch information
methane committed May 4, 2024
commit 4206af8f83ff74b8ba956377df1e2d28075f948b
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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
Expand Down