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

Documentation: Use builder.std rather than explicit compiler flags #1321

Merged
merged 1 commit into from Mar 6, 2024

Conversation

dcoles
Copy link
Contributor

@dcoles dcoles commented Mar 3, 2024

Small documentation update after running into this issue using the MSVC cl compiler on Windows.

Thanks for the awesome library.


The -std=c++11 flag only works with GNU-style compiler frontends for MSVC this should be /std:c++11.
Even better is to use the builder's explicit C/C++ standard setter.

The `-std=c++11` flag only works with GNU-style compiler frontends
for MSVC this should be `/std:c++11`. Even better is to use the builder's
explicit C/C++ standard setter.
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.

Thank you! I didn't know about this method.

@dtolnay dtolnay merged commit 744fc22 into dtolnay:master Mar 6, 2024
15 checks passed
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.

None yet

2 participants