built icon indicating copy to clipboard operation
built copied to clipboard

Add support for CARGO_CFG_TARGET_FEATURE

Open akanalytics opened this issue 4 years ago • 1 comments

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 :-)

akanalytics avatar Jun 07 '21 12:06 akanalytics

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

lukaslueg avatar Jun 07 '21 15:06 lukaslueg