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

avoid MSVC warning via flag_if_supported #194

Merged
merged 1 commit into from
May 9, 2020
Merged

avoid MSVC warning via flag_if_supported #194

merged 1 commit into from
May 9, 2020

Conversation

philipcraig
Copy link
Contributor

To avoid a compiler warning on MSVC, use flag_if_supported rather than flag for setting -std=c++11

Fixes #44

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Looks good. I guess this is based on whether anything is printed to stderr by the toolchain. https://github.com/alexcrichton/cc-rs/blob/d1a7b8e4dcc0ead31b8e7db655a914fa0d472829/src/lib.rs#L472

@dtolnay dtolnay merged commit 6cadf70 into dtolnay:master May 9, 2020
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.

-std=c++11 is not required on MSVC
2 participants