Skip to content

Commit

Permalink
Target GNU++17
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashton Meuser authored and Ashton Meuser committed Jun 1, 2024
1 parent 366ef65 commit 3ce84a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ elif env["wasm_runtime"] == "wasmtime":
# Check platform specifics
if env["platform"] in ["osx", "macos"]:
env.Prepend(CFLAGS=["-std=gnu11"])
env.Prepend(CXXFLAGS=["-std=gnu++14"])
env.Prepend(CXXFLAGS=["-std=gnu++17"])
env.Append(CCFLAGS=["-arch", "x86_64", "-Wall", "-g", "-O3"])
env.Append(LINKFLAGS=["-arch", "x86_64", "-framework", "Security", "-framework", "CoreFoundation", "-framework", "SystemConfiguration"])
elif env["platform"] == "linux":
env.Prepend(CFLAGS=["-std=gnu11"])
env.Prepend(CXXFLAGS=["-std=gnu++14"])
env.Prepend(CXXFLAGS=["-std=gnu++17"])
env.Append(CCFLAGS=["-fPIC", "-g", "-O3"])
elif env["platform"] == "windows":
env.Prepend(CCFLAGS=["/std:c++14", "-W3", "-GR", "-O2", "-EHsc"])
env.Prepend(CCFLAGS=["/std:c++17", "-W3", "-GR", "-O2", "-EHsc"])
env.Append(ENV=os.environ) # Keep session env variables to support VS 2017 prompt
env.Append(CPPDEFINES=["WIN32", "_WIN32", "_WINDOWS", "_CRT_SECURE_NO_WARNINGS", "NDEBUG"])
if env.get("use_mingw"): # MinGW
Expand Down

0 comments on commit 3ce84a1

Please sign in to comment.