mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
23ee523ea6
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |