Description
This came up in #76165 in response to the changes from #73964: currently the way to adapt to changes in x.py is 'learn about them because it broke something and change your workflow'. This is not ideal, especially for automated scripts. It would be great to have a separate, stable interface that doesn't change regardless of any changes to contributor defaults.
I imagine the defaults looking mostly, but not exactly, like the defaults prior to #73964:
- the default stage will go back to 2 for all subcommands
src/rustc
will be on by defaultdebuginfo = 1
by default whendebug = true
will not be reverted - if you have strong opinions about debuginfo I expect you already havedebug = false
for a release build.
The setup I imagine is two different scripts that work on the same underlying codebase: x.py
and bootstrap.py
, where bootstrap.py
is the stable version. Both will be 'facades' around the current src/bootstrap/bootstrap.py
, and the logic of choosing defaults will still live in bootstrap.py and the rustbuild crate.