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

Add support for CARGO_CFG_TARGET_FEATURE #40

Open
akanalytics opened this issue Jun 7, 2021 · 1 comment
Open

Add support for CARGO_CFG_TARGET_FEATURE #40

akanalytics opened this issue Jun 7, 2021 · 1 comment

Comments

@akanalytics
Copy link

Would it be possible to add support for CARGO_CFG_TARGET_FEATURE. Typical example might be "mmx,sse"
This would allow programs to report on how optimized they are for various processors (using SIMD instructions etc).
Would be useful for chess engines written in rust :-)

@lukaslueg
Copy link
Owner

AFAICS there is currently no reliable way to do this; it's is a long-standing issue with rustc, tracked among others in rust-lang/rust#44036. Also see rust-lang/cargo#7828

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