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

Fix ignoring unknown option -std=c++11 warning #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jkawamoto
Copy link

@jkawamoto jkawamoto commented Jun 30, 2024

MSVC doesn't recognize the -std=c++11 flag, and cargo reports this warning:

warning: [email protected]: cl : Command line warning D9002 : ignoring unknown option '-std=c++11'

This PR updates build.rs so that it doesn't set the flag with MSVC. Additionally, since static_crt only works with MSVC (see also documentation), this PR removes it from the other environments.

MSVC doesn't recognize the `-std=c++11` flag. This commit updates `build.rs` so
that it doesn't set the flag with MSVC. Additionally, since `static_crt` only
works with MSVC
(see also [documentation](https://docs.rs/cc/1.0.97/cc/struct.Build.html#method.static_crt)),
this commit removes it from the other environments.
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.

1 participant