Skip to content

Commit 9ba77d1

Browse files
committed
Disable libm on x86 without sse2
In <#594>, symbols for the Rust port of libm were made always weakly available. This seems to be causing problems on platforms with ABI issues, as explained at <rust-lang/rust#125016 (comment)>. Disable Rust libm on x86 without sse2 to mitigate this.
1 parent c04eb9e commit 9ba77d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ mod macros;
4747
pub mod float;
4848
pub mod int;
4949

50+
// Disabled on x86 without sse2 due to ABI issues
51+
// <https://github.com/rust-lang/rust/issues/114479>
52+
#[cfg(not(all(target_arch = "x86", not(target_feature = "sse2"))))]
5053
pub mod math;
5154
pub mod mem;
5255

0 commit comments

Comments
 (0)