Skip to content

Commit e879b36

Browse files
committed
Re-enable math module on i686-unknown-uefi
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)>.
1 parent b32fa78 commit e879b36

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lib.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,16 @@ pub mod int;
4444
// Disable for any of the following:
4545
// - x86 without sse2 due to ABI issues
4646
// - <https://github.com/rust-lang/rust/issues/114479>
47+
// - but re-enable for UEFI
48+
// - <https://github.com/rust-lang/rust/issues/128533>
4749
// - All unix targets (linux, macos, freebsd, android, etc)
4850
// - wasm with known target_os
4951
#[cfg(not(any(
50-
all(target_arch = "x86", not(target_feature = "sse2")),
52+
all(
53+
target_arch = "x86",
54+
not(target_feature = "sse2"),
55+
not(target_os = "uefi"),
56+
),
5157
unix,
5258
all(target_family = "wasm", not(target_os = "unknown"))
5359
)))]

0 commit comments

Comments
 (0)