From da9f1017038e0e06e80c2d6c2e583fa921e4cadf Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sun, 26 May 2024 04:27:50 -0400 Subject: [PATCH] Abort on panic, fix 32-bit Windows undefined reference --- src/fcmp/fcmp_rust/Cargo.toml | 2 ++ src/fcmp/fcmp_rust/src/lib.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/fcmp/fcmp_rust/Cargo.toml b/src/fcmp/fcmp_rust/Cargo.toml index f4efeff9c..871a6cb66 100644 --- a/src/fcmp/fcmp_rust/Cargo.toml +++ b/src/fcmp/fcmp_rust/Cargo.toml @@ -26,6 +26,8 @@ crypto-bigint = { git = "https://github.com/kayabaNerve/crypto-bigint", branch = [profile.dev] lto = "off" +panic = "abort" [profile.release] lto = "off" +panic = "abort" diff --git a/src/fcmp/fcmp_rust/src/lib.rs b/src/fcmp/fcmp_rust/src/lib.rs index 7907e6927..69f66eb49 100644 --- a/src/fcmp/fcmp_rust/src/lib.rs +++ b/src/fcmp/fcmp_rust/src/lib.rs @@ -241,3 +241,7 @@ pub extern "C" fn hash_trim_selene( ) } } + +// https://github.com/rust-lang/rust/issues/79609 +#[no_mangle] +pub extern "C" fn _Unwind_Resume() {}