Avoid is_x86_feature_detected when not building for x86
This commit is contained in:
@@ -750,6 +750,8 @@ fn report_target_features() {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||||
|
{
|
||||||
// Validator binaries built on a machine with AVX support will generate invalid opcodes
|
// 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
|
// when run on machines without AVX causing a non-obvious process abort. Instead detect
|
||||||
// the mismatch and error cleanly.
|
// the mismatch and error cleanly.
|
||||||
@@ -763,6 +765,7 @@ fn report_target_features() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 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
|
||||||
fn get_stake_percent_in_gossip(bank: &Arc<Bank>, cluster_info: &Arc<RwLock<ClusterInfo>>) -> u64 {
|
fn get_stake_percent_in_gossip(bank: &Arc<Bank>, cluster_info: &Arc<RwLock<ClusterInfo>>) -> u64 {
|
||||||
|
Reference in New Issue
Block a user