Skip to content

Improve "Building compiler artifacts" output #108051

Closed
@jyn514

Description

@jyn514

Right, now x build --dry-run outputs something like this:

Building stage0 library artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Copying stage0 library from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Copying stage0 rustc from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage1 compiler (x86_64-apple-darwin)
Building stage1 library artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Copying stage1 library from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage1 tool rust-analyzer-proc-macro-srv (x86_64-apple-darwin)
Building rustdoc for stage1 (x86_64-apple-darwin)

There are a few things here that are not ideal.

  • x86_64-apple-darwin -> x86_64-apple-darwin doesn't give a lot of info and is very noisy. We should only print it when the host and target are different.
  • "Building stage0 compiler artifacts" is very unclear that stage0 is the one doing the compiling.

I'd like to change this to something like Building compiler artifacts (stage0 -> stage1) when the target/host are the same and Building compiler artifacts (stage0: x86_64-apple-darwin -> stage1: x86_64-unknown-linux-gnu) when they're different.

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.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