rustbuild: --build doesn't actually work when you don't already have the stage0 compiler #42116
Labels
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
I tried to build a different ABI/triplet than the one rustbuild automatically guesses by using the
--build
command line option. As suggested in README.md#specifying-an-abi, But it didn't work and failed with:Setting "build" in cargo.toml works correctly.
The bootstrap.py script is responsible for downloading the stage0 compiler and building bootstrap (rustbuild), but it only checks which stage0 to download and use in config.toml/config.mk. It doesn't look at the command line at all for deciding this, which I think is the cause for this. See: bootstrap.py:410-545.
The text was updated successfully, but these errors were encountered: