From 4e71080fc76a5c51d2dd2b0469f702619472c04b Mon Sep 17 00:00:00 2001 From: "Rodrigo B. de Oliveira" Date: Sat, 30 Nov 2024 17:29:18 -0300 Subject: [PATCH] Set /std:c17 on windows --- SConstruct | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SConstruct b/SConstruct index 2cfc3f6..f89fb7a 100644 --- a/SConstruct +++ b/SConstruct @@ -70,6 +70,11 @@ env.Append( s7_env = env.Clone() s7_obj = s7_env.SharedObject(target='s7', source='s7/s7.c') +if s7_env["platform"] == "windows": + s7_env.Append( + CCFLAGS=['/std:c17'] + ) + sources = [ Glob("src/*.cpp"), Glob("src/repl/*.cpp")