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

Add global GCC version check #9779

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Conversation

jepler
Copy link
Member

@jepler jepler commented Nov 1, 2024

We can set some of them lower than 13 if necessary on a per-port basis. At least esp32 and arm ports all use 13 from what I could see.

I recently lost some time because CircuitPython for rp2040 built with gcc 10 just didn't work (wouldn't boot). It seems preferable to stop the build if it's an older version of GCC than the one we use in CI, unless we specifically test some older versions.

We can set some of them lower than 13 if necessary on a per-port basis.
At least esp32 and arm ports all use 13 from what I could see.
@jepler jepler marked this pull request as ready for review November 1, 2024 20:46
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cautioning the developer when doing something wrong is helpful. Thanks!

@dhalbert dhalbert merged commit cf76704 into adafruit:main Nov 1, 2024
21 checks passed
@jepler
Copy link
Member Author

jepler commented Nov 2, 2024

I can change the message because it's not actually the case that e.g., arm gcc 12 is "known to miscompile" the raspberrypi port, but this is the general idea of stopping folks from accidentally building with a gcc version different than what we use during CI

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

Successfully merging this pull request may close these issues.

2 participants