From 3dbc1eeea4f46996d59638b1751b162b70c21acd Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Mon, 21 Oct 2024 15:35:31 +0200 Subject: [PATCH] Re-enable math module on i686-unknown-uefi In 9ba77d1583e6de5ab9cf7c9b82827ba8fcb9062f, this was disabled for x86 without sse2. It should be fine to re-enable it for UEFI, as explained at . --- src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index dea30a3c..ffcd3586 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,10 +44,16 @@ pub mod int; // Disable for any of the following: // - x86 without sse2 due to ABI issues // - +// - but exclude UEFI since it is a soft-float target +// - // - All unix targets (linux, macos, freebsd, android, etc) // - wasm with known target_os #[cfg(not(any( - all(target_arch = "x86", not(target_feature = "sse2")), + all( + target_arch = "x86", + not(target_feature = "sse2"), + not(target_os = "uefi"), + ), unix, all(target_family = "wasm", not(target_os = "unknown")) )))]