rust.codegen-backends
interacts confusingly with paths
#109610
Labels
A-contributor-roadblock
Area: Makes things more difficult for new or seasoned contributors to Rust
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
I tried this code:
I expected this to happen: Bootstrap builds cranelift, since I named it explicitly.
Instead, this happened: Nothing, since I didn't have cranelift configured in
codegen-backends
:rust/src/bootstrap/compile.rs
Lines 998 to 1009 in ce6adcc
At a minimum, I would expect this to give an error or warning that I need to configure codegen-backends. It would be even nicer if we could treat
codegen-backends
as only controlling the defaults, instead of as a hard-off switch, like howrust.compiler-docs
works. That should be possible to do by looking at therun.paths
we're passed.cc @bjorn3
The text was updated successfully, but these errors were encountered: