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

Make is_flag_supported_inner take an &Tool instead of a &Path #1337

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

ChrisDenton
Copy link
Member

By passing in a Tool we allow other properties to be inspected by is_flag_supported_inner if necessary. I originally made this change to support grabbing an environment variable from the Tool but ended up going in a different direction. Still I think having the stronger type is useful on its own merit. And in the process of doing this I also ended up simplifying the arguments to cc_flags.

This also simplifies the arguments to `cc_flags`.
Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Thanks for the refactoring!

@NobodyXu NobodyXu merged commit cfa61d1 into rust-lang:main Jan 1, 2025
27 checks passed
@github-actions github-actions bot mentioned this pull request Jan 3, 2025
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