From 3ce84a1518c7e7bd33c9200b93af55ba61b9be8a Mon Sep 17 00:00:00 2001 From: Ashton Meuser Date: Fri, 31 May 2024 23:59:25 -0700 Subject: [PATCH] Target GNU++17 --- SConstruct | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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