bootstrap: Support --
as an alternative to --args
and --test-args
#107375
Labels
A-contributor-roadblock
Area: Makes things more difficult for new or seasoned contributors to Rust
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Right now, x.py is pretty inconsistent with cargo's CLI. To pass arguments to compiletest, you use
--test-args
; to pass arguments toexpand-yaml-anchors
you use--args
; to pass arguments to cargo you use CARGOFLAGS. I would like to unify these with the same syntax as cargo:x test ui -- --force-rerun --ignored
would behave the same asx test ui --test-args --force-rerun --test-args --ignored
todayx run miri -- run --print=sysroot
would behave the same asx run miri --args run --args --print=sysroot
x fix -- --fix-broken
would behave the same asCARGOFLAGS=--fix-broken x fix
today, except that it would only pass it to cargo commands invoked by bootstrap, not when building bootstrap itself (avoiding the "argument --fix-broken not expected" error you'd get today).The text was updated successfully, but these errors were encountered: