Skip to content

./x.py build --help gives misleading help #63928

Closed
@jsgf

Description

@jsgf
$ ./x.py build --help
[...]
    For a quick build of a usable compiler, you can pass:

        ./x.py build --stage 1 src/libtest

But in practice:

$ ./x.py build --stage 1 src/libtest
Updating only changed submodules
Submodules updated in 0.13 seconds
    Finished dev [unoptimized] target(s) in 0.15s
thread 'main' panicked at 'Error: no rules matched src/libtest.', src/bootstrap/builder.rs:231:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
failed to run: /data/users/jsgf/third-party2/rust/build/bootstrap/debug/bootstrap build --stage 1 src/libtest
Build completed unsuccessfully in 0:00:01

Should this still work, or is the help message wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-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