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
CXXFLAGS
  • Loading branch information
methane committed May 4, 2024
commit 6af994d7f5eeb65465c7d14184d18884c98a2673
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
if sys.platform == "win32":
libraries.append("ws2_32")
macros = [("__LITTLE_ENDIAN__", "1")]
cflags = os.environ.get("CFLAGS")
cflags = os.environ.get("CXXFLAGS")
cxx20flag = "/std:c++20"
if cflags is None:
cflags = cxx20flag
elif cxx20flag not in cflags:
cflags += " " + cxx20flag
os.environ["CFLAGS"] = cflags
os.environ["CXXFLAGS"] = cflags


from setuptools import setup, Extension
Expand Down