From ff1c309b23bf1c0c9b45650a73cc3b3cddff7702 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Wed, 7 Feb 2024 07:09:29 +1100 Subject: [PATCH] Fix nightly build (#619) * Fix nightly build * Add nightly feature constraint so AVX-512 requires either x86 or x86_64 Co-authored-by: Tony Arcieri * fmt --------- Co-authored-by: Michael Rosenberg Co-authored-by: Tony Arcieri Co-authored-by: Michael Rosenberg --- curve25519-dalek/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/curve25519-dalek/src/lib.rs b/curve25519-dalek/src/lib.rs index 9097a9a..d866645 100644 --- a/curve25519-dalek/src/lib.rs +++ b/curve25519-dalek/src/lib.rs @@ -10,7 +10,14 @@ // - Henry de Valence #![no_std] -#![cfg_attr(all(curve25519_dalek_backend = "simd", nightly), feature(stdsimd))] +#![cfg_attr( + all( + curve25519_dalek_backend = "simd", + nightly, + any(target_arch = "x86", target_arch = "x86_64") + ), + feature(stdarch_x86_avx512) +)] #![cfg_attr( all(curve25519_dalek_backend = "simd", nightly), feature(avx512_target_feature)