Allow targets to override default codegen backend by WaffleLapkin · Pull Request #116793 · rust-lang/rust (original) (raw)
This doesn't really do the same thing as before, or rather it assumes custom codegen backends require config.make_codegen_backend
, whereas config.opts.unstable_opts.codegen_backend
is also possible.
The new version calls config::build_target_config
once, without the override, which means the backend cannot add new targets, only at most slightly tweak existing ones.
To be clear, none of this really matters anymore due to:
(but I ran into it while trying to update Rust-GPU to nightly-2024-03-21
, just before #122810, just so I can get everything else out of the way before tackling the target_override
removal itself)