Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCons: Bump C standard: C11C17 #97626

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Sep 29, 2024

As the leap from C11 to C17 is fairly minor, functioning mostly as a bugfix release1, it feels like a reasonable addition now that the C-Standard is properly added in msvc builds. The only context where the C-Standard wouldn't be updated is for anyone using VS2017, but they're already not specifying a C-Standard outright so it's not exactly dealbreaking.

Footnotes

  1. https://en.wikipedia.org/wiki/C17_(C_standard_revision)#Changes_from_C11

@Repiteo Repiteo added this to the 4.x milestone Sep 29, 2024
@Repiteo Repiteo requested a review from a team as a code owner September 29, 2024 17:30
@Calinou
Copy link
Member

Calinou commented Oct 15, 2024

This should probably be done in godot-cpp and godot-cpp-template as well.

@Repiteo
Copy link
Contributor Author

Repiteo commented Oct 15, 2024

Good call! Those should get the extra msvc C-Standard checks at the same time; I'll look into that sometime tomorrow

@Repiteo Repiteo modified the milestones: 4.x, 4.4 Oct 16, 2024
@Repiteo Repiteo merged commit 677ebad into godotengine:master Oct 21, 2024
19 checks passed
@Repiteo Repiteo deleted the scons/c17 branch October 21, 2024 21:50
@Swarkin
Copy link
Contributor

Swarkin commented Oct 22, 2024

Will this allow for some more compiler optimizations when building?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants