-
Notifications
You must be signed in to change notification settings - Fork 105
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
Bare template crashes during release build with lto = 'fat' in nightly #71
Comments
I confirm this is indeed broken on current nighly. |
I bisected this build error using cargo-bisect-rustc. The first bad commit was 8c2b57721728233e074db69d93517614de338055. rust-lang/rust#118559 reports a regression in that commit that matches ours well enough that I assume it's the same issue. |
Indeed, and there seem to be a PR attempting to fix something relate: rust-lang/rust#118568 With a bit a luck it might be fixed in the next couple of days. |
|
Still a good question:
|
I can verify that rust-lang/rust#118568 did not fix the issue. |
Checked with stable, beta & nightly. This is now resolved. 🎉 |
Building the rp2040 project template without any alterations with rust nightly results in an error caused by lto = 'fat' optimization
It is possible that I am missing something, but changing lto = 'thin' seems to solve the issue albeit resulting in a larger binary size.
The text was updated successfully, but these errors were encountered: