-
Notifications
You must be signed in to change notification settings - Fork 119
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
Fix LTO regressions in nightly toolchain #52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build command is fixed but generating the metadata is broken.
I get a cc linker error.
flipper/target/release/deps/flipper.flipper.8f0qzq8t-cgu.0.rcgu.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
EDIT: Same error as in the tests :(
@riusricardo indeed I am working on troubleshooting this as we speak |
As a workaround you can comment out I'm working on doing this automatically but in the meantime this should suffice. |
@riusricardo could you try again now, and see if it works for you? |
@ascjones everything is working again 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fix for use-ink/ink#391.
Recent nightly has broken since rust-lang/rust#71925 (see rust-osdev/cargo-xbuild#69 (comment))
cargo-xbuild
which adds LTO flag to sysroot build: Set-Clinker-plugin-lto
for the sysroot build rust-osdev/cargo-xbuild#71.file not recognized: File format not recognized
. rel: Add default[profile.release]
values to Cargo.toml if not present #40