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,9 +1430,15 @@ 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.
|
}
|
||||||
|
|
||||||
|
// 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.
|
||||||
|
#[target_feature(enable = "avx")]
|
||||||
|
unsafe fn check_avx() {
|
||||||
if is_x86_feature_detected!("avx") {
|
if is_x86_feature_detected!("avx") {
|
||||||
info!("AVX detected");
|
info!("AVX detected");
|
||||||
} else {
|
} else {
|
||||||
@ -1441,7 +1447,6 @@ fn report_target_features() {
|
|||||||
);
|
);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the activated stake percentage (based on the provided bank) that is visible in gossip
|
// Get the activated stake percentage (based on the provided bank) that is visible in gossip
|
||||||
|
Reference in New Issue
Block a user