Skip to content

bootstrap: Support -- as an alternative to --args and --test-args #107375

Closed
@jyn514

Description

@jyn514

Right now, x.py is pretty inconsistent with cargo's CLI. To pass arguments to compiletest, you use --test-args; to pass arguments to expand-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 as x test ui --test-args --force-rerun --test-args --ignored today
  • x run miri -- run --print=sysroot would behave the same as x run miri --args run --args --print=sysroot
  • x fix -- --fix-broken would behave the same as CARGOFLAGS=--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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions