-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Move codegen backend dylibs to a more sensible place #78704
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
(rust_highfive has picked a reviewer for you, use r? to override) |
They used to be located at `lib/rustlib/$HOST_TRIPLE/codegen-backends`. Now they are at `lib/codegen-backends`.
fa35070
to
6740be0
Compare
Hm, I seem to recall some conversation about the current location being somewhat beneficial for e.g. distros who install Rust and don't want a lib/codegen-backends directory. But those discussions were a while back -- maybe @alexcrichton or @cuviper have some relevant context here? |
Maybe it can be in |
Ah sorry, I don't remember much about those discussions myself 👍 |
I don't remember past discussions either. But if we start from
Some prior art:
|
Currently |
I think the lib/libLLVM and lib/rustc_driver could be host specific, though, right? If you had bin/rustc-i686 and bin/rustc-x86_64 you could arrange for the .so's to still be found (e.g., in lib32 and lib64 directories or at different filenames potentially). |
lib/libLLVM and lib/rustc_driver are only used together with the rustc binary, which isn't in an architecture specific location. If you try to use rustc_driver as dependency, the version in lib/rustlib/lib/$target is used, not the one in lib. |
Right, I'm saying that I would expect it to be possible for e.g. debian to have i686 and x86_64 host rustc's installed side-by-side. (Even if that would be somewhat unusual, as rustc is a cross-compiler). Ultimately I think it probably doesn't matter that much... |
@bjorn3 any updates? |
@bjorn3 I'm gonna close this due to inactivity. Feel free to reopen or create a new PR when you have time to work on this again. Thanks! |
They used to be located at
lib/rustlib/$HOST_TRIPLE/codegen-backends
. Now they are atlib/codegen-backends
.cc @khyperia (EmbarkStudios/rust-gpu#48 (comment))
@rustbot modify labels: +A-driver +T-compiler