diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-21 16:39:22 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-21 16:39:22 -0500 |
commit | 677ebad7fcb9a2859c816a3c8d6a36b7b52d55ac (patch) | |
tree | 610644929ca186aff8c0354ba59b458dab811513 | |
parent | a14e9e99e5e8704147b9ad1fb51f15f34913ca89 (diff) | |
parent | 705f51f97ee513d351054837cb1f8ac168da5810 (diff) | |
download | redot-engine-677ebad7fcb9a2859c816a3c8d6a36b7b52d55ac.tar.gz |
Merge pull request #97626 from Repiteo/scons/c17
SCons: Bump C standard: `C11`→`C17`
-rw-r--r-- | SConstruct | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct index 63cff4fe16..785cc0b1a3 100644 --- a/SConstruct +++ b/SConstruct @@ -799,8 +799,8 @@ if env["lto"] != "none": # This needs to come after `configure`, otherwise we don't have env.msvc. if not env.msvc: # Specifying GNU extensions support explicitly, which are supported by - # both GCC and Clang. Both currently default to gnu11 and gnu++17. - env.Prepend(CFLAGS=["-std=gnu11"]) + # both GCC and Clang. Both currently default to gnu17 and gnu++17. + env.Prepend(CFLAGS=["-std=gnu17"]) env.Prepend(CXXFLAGS=["-std=gnu++17"]) else: # MSVC started offering C standard support with Visual Studio 2019 16.8, which covers all @@ -809,7 +809,7 @@ else: if cc_version_major < 16: print_warning("Visual Studio 2017 cannot specify a C-Standard.") else: - env.Prepend(CFLAGS=["/std:c11"]) + env.Prepend(CFLAGS=["/std:c17"]) # MSVC is non-conforming with the C++ standard by default, so we enable more conformance. # Note that this is still not complete conformance, as certain Windows-related headers # don't compile under complete conformance. |