cfg_target_feature doesn't work for all supported rustc features #50077
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Viz,
target_feature
does not work forrdrnd
but does work foravx2
(rustcrustc 1.27.0-nightly (ac3c2288f 2018-04-18)
, Mac OS X El Capitan).This is created with
cargo rustc -- -C target-feature=+avx2
However, this is NOT created with
cargo rustc -- -C target-feature=+rdrnd
ie, changing
avx2
forrdrnd
causes the function to not be compiled. Bothavx2
andrdnrd
are present inrustc --print target-features
The text was updated successfully, but these errors were encountered: