Skip to content

Support setting target-features and target-cpu #344

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

Closed
gnzlbg opened this issue Sep 3, 2018 · 2 comments
Closed

Support setting target-features and target-cpu #344

gnzlbg opened this issue Sep 3, 2018 · 2 comments

Comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Sep 3, 2018

It would be great to have a way to be able to forward enabled Rust target features down to the C and C++ compilers, mapping the Rust names to the C / C++ compiler names depending on the compiler being used (for clang and gcc these names should be identical to the Rust ones most of the time).

The same applies to the target CPU where different compilers use -mcpu/-march/... to set it.

@alexcrichton
Copy link
Member

Seems reasonable to me!

@alexcrichton
Copy link
Member

I'm actually going to close this in favor of #268

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

No branches or pull requests

2 participants