-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Implement target-features flag #1556
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see CONTRIBUTING.md for more information. |
Thanks for the PR! Right now, however, Cargo isn't trying to expose an exhaustive set of flags from the compiler at the top level (that would be quite a few). Instead we've been holding out for extensible strategies to solve issues like #544 (for example #595). It's also not 100% clear to me whether configuration like this belongs in the |
☔ The latest upstream changes (presumably #1561) made this pull request unmergeable. Please resolve the merge conflicts. |
Admittedly, I am scratching my own itch here, but I think it is important to expose that particular flag, because it is actually influencing whether certain non-portable builds succeed or not, while other arguments regarding "somehow passing flags" to the compiler have been revolving around adding flags to debug issues, or change subtleties in optimisation. The impression I had of the |
The unfortunate part is that the compiler exposes many options like this, and Cargo either needs to bind all of them or provide a generic means of specifying them to the compiler. This is the purpose of the Configuration options such as this are very target-specific, and also arguably belong in a custom target specification that's read in by the compiler. |
Could you elaborate a bit on this? Is this a deliverable that would be independent from the "generic" solution |
Ah indeed! Custom target specifications are a means of passing a custom |
Closing due to may last comment, plus |
This is a beginner's shot at #1137. Not sure this is the way you'd want to do this, but I'm happy to learn from mistakes ;)