From 41981f1cc6a5a07f3e7940f6635e58e379c1376d Mon Sep 17 00:00:00 2001 From: Joby Thundil Date: Tue, 12 Sep 2023 11:59:35 -0400 Subject: [PATCH] supress warning for risc zero builds --- curve25519-dalek/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curve25519-dalek/build.rs b/curve25519-dalek/build.rs index 92d2802cd..d23920260 100644 --- a/curve25519-dalek/build.rs +++ b/curve25519-dalek/build.rs @@ -103,7 +103,9 @@ mod deterministic { let platform = match platforms::Platform::find(&target_triplet) { Some(p) => p, None => { - determine_curve25519_dalek_bits_warning(ERR_MSG_NO_PLATFORM); + if target_triplet != "riscv32im-risc0-zkvm-elf" { + determine_curve25519_dalek_bits_warning(ERR_MSG_NO_PLATFORM); + } return DalekBits::Dalek32; } };