Skip to content

Commit

Permalink
Re-enable math module on i686-unknown-uefi
Browse files Browse the repository at this point in the history
In 9ba77d1, this was disabled for x86
without sse2. It should be fine to re-enable it for UEFI, as explained at
<rust-lang/rust#128533 (comment)>.
  • Loading branch information
YtvwlD committed Oct 21, 2024
1 parent b32fa78 commit e879b36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 re-enable for UEFI
// - <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"))
)))]
Expand Down

0 comments on commit e879b36

Please sign in to comment.