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

Remove some hasattr checks from Compilers #13736

Merged

Conversation

dcbaker
Copy link
Member

@dcbaker dcbaker commented Oct 1, 2024

No description provided.

This is used in exactly two cases, and it's just not worth it. Those two
cases can override the default set of extensions, and in the process
allow a nice bit of code cleanup, especially toward type checking.
This is never set outside the `Compiler.__init__`, only added to. As
such there's no reason to have this `hasattr` check. It's wasting time
*and* confusing our static checkers.
@dcbaker dcbaker merged commit 3728b22 into mesonbuild:master Oct 1, 2024
33 checks passed
@dcbaker dcbaker deleted the submit/compilers-make-suffixes-simpler branch October 1, 2024 17:39
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