remove avx error on macos (#18923)

This commit is contained in:
Jack May
2021-07-27 16:34:04 -07:00
committed by GitHub
parent 86bda02fc4
commit f1b9f97aef

View File

@ -1470,6 +1470,7 @@ fn report_target_features() {
// 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.
#[allow(dead_code)]
#[target_feature(enable = "avx")]
unsafe fn check_avx() {
if is_x86_feature_detected!("avx") {