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

Pass -Wno-unused-command-line-argument to clang in is_flag_supported #886

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

thomcc
Copy link
Member

@thomcc thomcc commented Oct 7, 2023

Fixes #730

I don't know when this warning was added but it seems at least 10 years old from a quick search, so hopefully we don't need to check clang version first.

I'm not sure if clang-cl needs this either.

@thomcc thomcc requested a review from NobodyXu November 3, 2023 14:45
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.

LGTM, though I haven't tried this in production.

@thomcc
Copy link
Member Author

thomcc commented Nov 3, 2023

That's fine, I did test it locally at least.

@thomcc thomcc merged commit 59255ce into rust-lang:main Nov 3, 2023
16 checks passed
@thomcc thomcc deleted the allow-unused-arg branch November 3, 2023 22:17
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.

flag_if_supported("-std=c++YY") seems to always fail with clang
2 participants