Skip to content

Commit ff1c309

Browse files
jimmygchenrozbbtarcieri
authored
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 <[email protected]> * fmt --------- Co-authored-by: Michael Rosenberg <[email protected]> Co-authored-by: Tony Arcieri <[email protected]> Co-authored-by: Michael Rosenberg <[email protected]>
1 parent ba737a3 commit ff1c309

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

curve25519-dalek/src/lib.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
// - Henry de Valence <[email protected]>
1111

1212
#![no_std]
13-
#![cfg_attr(all(curve25519_dalek_backend = "simd", nightly), feature(stdsimd))]
13+
#![cfg_attr(
14+
all(
15+
curve25519_dalek_backend = "simd",
16+
nightly,
17+
any(target_arch = "x86", target_arch = "x86_64")
18+
),
19+
feature(stdarch_x86_avx512)
20+
)]
1421
#![cfg_attr(
1522
all(curve25519_dalek_backend = "simd", nightly),
1623
feature(avx512_target_feature)

0 commit comments

Comments
 (0)