cranelift-native: Use libstd feature detection (#2607)

This commit switches cranelift-native to useing the
`is_x86_feature_detected!` macro in the standard library instead of the
`raw-cpuid` crate.
This commit is contained in:
Alex Crichton
2021-01-26 16:42:11 -06:00
committed by GitHub
parent 503129ad91
commit 7f840870c7
3 changed files with 31 additions and 56 deletions

View File

@@ -14,9 +14,6 @@ edition = "2018"
cranelift-codegen = { path = "../codegen", version = "0.69.0", default-features = false }
target-lexicon = "0.11"
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
raw-cpuid = "9.0.0"
[features]
default = ["std"]
std = ["cranelift-codegen/std"]