-
Notifications
You must be signed in to change notification settings - Fork 45
chore: Update to LLVM 20 #257
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
Conversation
Hmm... I'm not sure if linking llvm-sys 191.x to LLVM 20 will work. If yes, that's great. If not, we need to bump the LLVM version in llvm-sys first. I've already started preparing that change, I'm planning to make a PR next morning. |
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.
Approving in case it works 🙂
Hum, interesting - the failing tests have just some mismatch in the DI/IR, but overall linking to LLVM 20 seems to work just fine. On a side note, I opened a PR in llvm-sys. |
8debd49
to
2f13419
Compare
Latest Rust nightly switched to LLVM 20, so we need to update in order to support rustc-llvm-proxy.
@vadorovsky I don't have a Linux machine handy to test on. Could you see if you can find out why the DI is lacking this function? |
Sure, I will take care of that |
The previous code, which wasn't making any use of the return value of `my_function`, was optimized out after upgrading to LLVM 20. Using the return value prevents that.
For me, installing the latest |
@thomaseizinger what does "didn't work" mean? That's not actionable. |
It couldn't find an LLVM version to link against. Building llvm-sys failed. |
Oh, yeah, that won't work. Unfortunately everything is tightly coupled: rustc, LLVM, and bpf-linker must all be using the same LLVM version. |
That is what I figured. The README is currently outdated on that front :) Plus, I think it would be good to tell people to use Maybe we can also add a table that maps versions of |
IMO we should be looking to write the docs such that they're always correct, not such that the require constant updates. |
This change is