rust/compiler/rustc_interface
Nicholas Nethercote 23ee523ea6 Remove CodegenBackend::target_override.
Backend and target selection is a mess: the target can override the
backend (via `Target::default_codegen_backend`), *and* the backend can
override the target (via `CodegenBackend::target_override`).

The code that handles this is ugly. It calls `build_target_config`
twice, once before getting the backend and once again afterward. It also
must check that both overrides aren't triggering at the same time.

This commit removes the latter override. It's used in rust-gpu but
@eddyb said via Zulip that removing it would be ok. This simplifies the
code greatly, and will allow some nice follow-up refactorings.
2024-03-21 11:48:49 +11:00
..
src Remove CodegenBackend::target_override. 2024-03-21 11:48:49 +11:00
Cargo.toml Unify dylib loading between proc macros and codegen backends 2024-02-21 11:17:07 +00:00
messages.ftl Make incremental sessions identity no longer depend on the crate names provided by source code 2024-03-13 16:40:02 +01:00