Skip to content

Commit

Permalink
Build without c++20.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daylily-Zeleen committed Jul 29, 2023
1 parent 0c6058b commit 74766d6
Show file tree
Hide file tree
Showing 7 changed files with 766 additions and 142 deletions.
22 changes: 11 additions & 11 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ env.Append(CPPPATH=["src/"])
# sources = Glob("src/*.cpp")
sources = Glob("src/*.cpp")

# Require C++20
if env.get("is_msvc", False):
env["CXXFLAGS"] = ["/std:c++20"]
else:
if env["platform"] in ["android", "macos", "ios"]:
# Clang flags
env["CXXFLAGS"] = ["-std=c++20"]
env["CXXFLAGS"].append("-v")
else:
# g++ flags
env["CXXFLAGS"] = ["-std=c++2a"]
# # Require C++20
# if env.get("is_msvc", False):
# env["CXXFLAGS"] = ["/std:c++20"]
# else:
# if env["platform"] in ["android", "macos", "ios"]:
# # Clang flags
# env["CXXFLAGS"] = ["-std=c++20"]
# env["CXXFLAGS"].append("-v")
# else:
# # g++ flags
# env["CXXFLAGS"] = ["-std=c++2a"]


if env["platform"] == "macos":
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 74766d6

Please sign in to comment.