Merge pull request #715 from YtvwlD/math-i686-uefi

Re-enable math module on i686-unknown-uefi
This commit is contained in:
Trevor Gross 2024-10-23 04:56:30 -05:00 committed by GitHub
commit 8c26f3dd26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,10 +44,16 @@ pub mod int;
// Disable for any of the following:
// - x86 without sse2 due to ABI issues
// - <https://github.com/rust-lang/rust/issues/114479>
// - but exclude UEFI since it is a soft-float target
// - <https://github.com/rust-lang/rust/issues/128533>
// - 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"))
)))]