mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
check if on x86 arch before doing feature detection
This commit is contained in:
parent
72e60bceea
commit
d98db0828b
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ mod cli_run {
|
|||
) {
|
||||
// valgrind does not yet support avx512 instructions, see #1963.
|
||||
// we can't enable this only when testing with valgrind because of host re-use between tests
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
if is_x86_feature_detected!("avx512f") {
|
||||
std::env::set_var("NO_AVX512", "1");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue