Skip to content

Commit ff41479

Browse files
zlib-rs: properly guard AVX512 tests
these require the "std" feature being enabled (else the CPU feature detection fails). Signed-off-by: Fabian Grünbichler <[email protected]>
1 parent 21a7d9e commit ff41479

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zlib-rs/src/adler32/avx2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ unsafe fn helper_32_bytes(mut adler0: u32, mut adler1: u32, src: &[__m256i]) ->
146146

147147
#[cfg(test)]
148148
#[cfg(target_feature = "avx2")]
149+
#[cfg(feature = "std")]
149150
mod test {
150151
use super::*;
151152

0 commit comments

Comments
 (0)