mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-05-30 11:36:08 +02:00
avoid compiling avx512_detected() when the "c_avx512" feature is disabled
https://github.com/rust-lang/rust/issues/68905 is currently causing nightly builds to fail, unless `--no-default-features` is used. This change means that the default build will succeed, and the failure will only happen when the "c_avx512" is enabled. The `b3sum` crate will still fail to build on nightly, because it enables that feature, but most callers should start succeeding on nightly.
This commit is contained in:
parent
0de4412884
commit
e43a7d68bc
|
@ -252,6 +252,7 @@ impl Platform {
|
|||
|
||||
// Note that AVX-512 is divided into multiple featuresets, and we use two of
|
||||
// them, F and VL.
|
||||
#[cfg(feature = "c_avx512")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
#[inline(always)]
|
||||
pub fn avx512_detected() -> bool {
|
||||
|
|
Loading…
Reference in New Issue