Skip to content

Commit

Permalink
CXXFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed May 4, 2024
1 parent 6177331 commit 6af994d
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 6af994d

Please sign in to comment.