Skip to content

Commit fbc9efa

Browse files
Merge pull request #398 from AquaEBM/avx512-feature-flag
fix build error on AVX-512
2 parents 94f4f68 + 18de239 commit fbc9efa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/core_simd/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
any(target_arch = "powerpc", target_arch = "powerpc64"),
3434
feature(stdarch_powerpc)
3535
)]
36+
#![cfg_attr(
37+
all(target_arch = "x86_64", target_feature = "avx512f"),
38+
feature(stdarch_x86_avx512)
39+
)]
3640
#![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
3741
#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
3842
#![allow(internal_features)]

0 commit comments

Comments
 (0)