Clean up build warning
This commit is contained in:
parent
54ef065cc8
commit
17a173ebb5
|
@ -1408,22 +1408,17 @@ fn report_target_features() {
|
||||||
not(target_os = "macos")
|
not(target_os = "macos")
|
||||||
))]
|
))]
|
||||||
{
|
{
|
||||||
unsafe { check_avx() };
|
// Validator binaries built on a machine with AVX support will generate invalid opcodes
|
||||||
}
|
// when run on machines without AVX causing a non-obvious process abort. Instead detect
|
||||||
}
|
// the mismatch and error cleanly.
|
||||||
|
if is_x86_feature_detected!("avx") {
|
||||||
// Validator binaries built on a machine with AVX support will generate invalid opcodes
|
info!("AVX detected");
|
||||||
// when run on machines without AVX causing a non-obvious process abort. Instead detect
|
} else {
|
||||||
// the mismatch and error cleanly.
|
error!(
|
||||||
#[target_feature(enable = "avx")]
|
"Your machine does not have AVX support, please rebuild from source on your machine"
|
||||||
unsafe fn check_avx() {
|
);
|
||||||
if is_x86_feature_detected!("avx") {
|
abort();
|
||||||
info!("AVX detected");
|
}
|
||||||
} else {
|
|
||||||
error!(
|
|
||||||
"Your machine does not have AVX support, please rebuild from source on your machine"
|
|
||||||
);
|
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue