Upgrade to rust 1.41.0 (bp #8202) (#8219)

automerge
This commit is contained in:
mergify[bot]
2020-02-11 13:56:58 -08:00
committed by GitHub
parent 70089a5258
commit 79035bdbed
8 changed files with 6 additions and 26 deletions

View File

@@ -1,8 +0,0 @@
fn main() {
// Until https://github.com/rust-lang/rust/issues/44839 is resolved
// `#[target_feature(enable = "avx512f")]` is not available.
// Use an env flag instead:
if is_x86_feature_detected!("avx512f") {
println!("cargo:rustc-env=TARGET_FEATURE_AVX512F=1");
}
}

View File

@@ -659,16 +659,6 @@ fn report_target_features() {
process::exit(1);
}
}
// TARGET_FEATURE_AVX512F is defined by build.rs
if option_env!("TARGET_FEATURE_AVX512F").is_some() {
if is_x86_feature_detected!("avx512f") {
info!("AVX512 detected");
} else {
error!("Your machine does not have AVX512 support, please rebuild from source on your machine");
process::exit(1);
}
}
}
// Get the activated stake percentage (based on the provided bank) that is visible in gossip