-
Notifications
You must be signed in to change notification settings - Fork 241
Fix math libraries not being linked on some platforms #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75eb6ec
to
00baf68
Compare
Rather than messing with clippy attributes, just disable it in CI for now. Though this should be fixed properly by updating the |
Updated libm |
This is a continuation/fix of 018616e. In that commit, we made it add the math functions to all platforms (except apple-targets and windows), and use `weak` linking, so that it can be used if the system doesn't have those functions. Didn't notice `mod math` was behind another set of `cfg`, so removed it as well here.
The solution is not pretty, but not sure why we still get clippy warning from one of the files in `libm` even though we use `allow(clippy::all)`
acee57a
to
dd85395
Compare
Oops sorry for the noise. I accidentally tapped a button when scrolling on mobile. Hopefully I undid my mistake. |
tgross35
added a commit
to tgross35/compiler-builtins
that referenced
this pull request
Jun 18, 2024
In <rust-lang#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.
tgross35
added a commit
to tgross35/rust
that referenced
this pull request
Jun 3, 2025
In <rust-lang/compiler-builtins#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#125016 (comment)>. Disable Rust libm on x86 without sse2 to mitigate this.
tautschnig
pushed a commit
to model-checking/verify-rust-std
that referenced
this pull request
Jun 17, 2025
In <rust-lang/compiler-builtins#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#125016 (comment)>. Disable Rust libm on x86 without sse2 to mitigate this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a continuation/fix of 018616e. In that commit, we made it add the math functions to all platforms (except apple-targets and windows), and use
weak
linking, so that it can be used if the system doesn't have those functions.Didn't notice
mod math
was behind another set ofcfg
, so removed it as well here.There is an issue with clippy, so disabled it on the file as a whole