Revert "Clean up build warning"
This reverts commit17a173ebb5
. (cherry picked from commitd269975784
)
This commit is contained in:
committed by
Michael Vines
parent
b433048003
commit
1268eef3b2
@ -1430,17 +1430,22 @@ fn report_target_features() {
|
|||||||
not(target_os = "macos")
|
not(target_os = "macos")
|
||||||
))]
|
))]
|
||||||
{
|
{
|
||||||
// Validator binaries built on a machine with AVX support will generate invalid opcodes
|
unsafe { check_avx() };
|
||||||
// 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") {
|
|
||||||
info!("AVX detected");
|
// Validator binaries built on a machine with AVX support will generate invalid opcodes
|
||||||
} else {
|
// when run on machines without AVX causing a non-obvious process abort. Instead detect
|
||||||
error!(
|
// the mismatch and error cleanly.
|
||||||
"Your machine does not have AVX support, please rebuild from source on your machine"
|
#[target_feature(enable = "avx")]
|
||||||
);
|
unsafe fn check_avx() {
|
||||||
abort();
|
if is_x86_feature_detected!("avx") {
|
||||||
}
|
info!("AVX detected");
|
||||||
|
} else {
|
||||||
|
error!(
|
||||||
|
"Your machine does not have AVX support, please rebuild from source on your machine"
|
||||||
|
);
|
||||||
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user