diff --git a/SConstruct b/SConstruct index 0fc7b28..b6928e8 100644 --- a/SConstruct +++ b/SConstruct @@ -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