diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2024-02-23 07:18:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 07:18:22 -0500 |
| commit | fbc9efa364db3cc17fa8c395dff06a3d704dad9c (patch) | |
| tree | a0347eefaa7399fa39a2600a9d196918933b8734 | |
| parent | 94f4f681e5c32085b290036ffb1e10173dd3a88b (diff) | |
| parent | 18de239ecf5054ce4f284a221c394ceace0cbab5 (diff) | |
| download | rust-fbc9efa364db3cc17fa8c395dff06a3d704dad9c.tar.gz rust-fbc9efa364db3cc17fa8c395dff06a3d704dad9c.zip | |
Merge pull request #398 from AquaEBM/avx512-feature-flag
fix build error on AVX-512
| -rw-r--r-- | crates/core_simd/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/core_simd/src/lib.rs b/crates/core_simd/src/lib.rs index a25723e11ce..ecadb56bd12 100644 --- a/crates/core_simd/src/lib.rs +++ b/crates/core_simd/src/lib.rs @@ -33,6 +33,10 @@ any(target_arch = "powerpc", target_arch = "powerpc64"), feature(stdarch_powerpc) )] +#![cfg_attr( + all(target_arch = "x86_64", target_feature = "avx512f"), + feature(stdarch_x86_avx512) +)] #![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really #![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)] #![allow(internal_features)] |
