rustup icon indicating copy to clipboard operation
rustup copied to clipboard

Distribute GCC backend

Open GuillaumeGomez opened this issue 1 year ago • 1 comments

Hi. Since https://github.com/rust-lang/rust/pull/122334 was merged, I think it's now ready to start distributing the GCC backend through rustup. There are still limitations though:

  • For now we only build it for x86_64 linux target.
  • The backend is still very experimental and incomplete.

Based on this, would you be open distributing it? If so, what remains to be done?

Thanks in advance!

GuillaumeGomez avatar Apr 05 '24 19:04 GuillaumeGomez

@GuillaumeGomez Hi, and thanks a lot for all the work!

I'm very excited to see yet another codegen backend becoming available to end users!

Looking at how rustc-codegen-cranelift got shipped in https://github.com/rust-lang/rust/pull/81746, it looks like distributing a new component with Rustup is more about ensuring that the right manifests and artifacts are on the release server, and probably has little to do with the Rustup codebase (except for a few things like the rustup doc command where Rustup itself is responsible for consuming the component).

I think you can start the experiment as long as you're sure that your component has a -preview suffix and is exclusively available on nightly, which is enough to show that it's still experimental. Again, just follow https://github.com/rust-lang/rust/pull/81746.

Currently I'm not aware of any special handling regarding codegen backends on Rustup's side, and given that this time some other party like Cargo is responsible for consuming this new component, I guess there's nothing to be changed from Rustup, but we'll have to wait and see. I'll keep this issue open just in case.

rami3l avatar Apr 05 '24 23:04 rami3l