-
Notifications
You must be signed in to change notification settings - Fork 20
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 nightly build #315
Fix nightly build #315
Conversation
967eed6
to
05d8bd0
Compare
bef87c1
to
52faabb
Compare
Thanks for looking into this @niklasdewally. It doesn't look like there is a trivial fix at the moment, should we temporarily disable the nightly ubuntu test I wonder? |
The flags I put in this commit (and given in the rust article above) work -- the issue at the moment is .cargo/config.toml syntax and how to enable it for the build through that. Setting For CI, the fix done in dtolnay/linkme#88 would work for us (i.e. just setting RUSTFLAGS in the CI script) -- however, I think that we should also fix it for non-CI builds without manual intervention -- i.e. in .cargo/config.toml, or in build.rs. |
I am in full-time work currently so probably won't get to this until Sunday - if anyone wants to take over the PR, feel free. A temporary solution would probably be fine, considering that |
1eba493
to
b36f502
Compare
In recent versions of the nightly / beta compilers, the use of linkme causes linker errors. (dtolnay/linkme#94) This is due to the new linker set as default in these versions. Add linker flags to nightly builds to revert to the old linker behaviour. See: - dtolnay/linkme#88 - https://blog.rust-lang.org/2024/05/17/enabling-rust-lld-on-linux.html Signed-off-by: Niklas Dewally <[email protected]>
b36f502
to
482c1e5
Compare
Thanks! This looks good! Hope you are enjoying the summer job. |
In recent versions of the nightly / beta compilers, the use of linkme causes linker errors. (dtolnay/linkme#94) This is due to the new linker set as default in these versions.
Add linker flags to nightly builds to revert to the old linker behaviour.
See: