Remove duplicate aliases for check codegen_{cranelift,gcc} and fix build codegen_gcc by jyn514 · Pull Request #95901 · rust-lang/rust (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation7 Commits2 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

jyn514

cc @bjorn3 @antoyo

@rust-highfive

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@jyn514

Bootstrap already allows selecting these in PathSet::has, which allows any string that matches the end of a full path.

I found these by adding assert!(path.exists()) in StepDescription::paths. I think ideally we wouldn't have any aliases that aren't paths, but I've held off on enforcing that here since it may be controversial, I'll open a separate PR.

@jyn514

These paths (_cranelift and _gcc) are somewhat misleading, since they actually tell bootstrap to build all codegen backends. But this seems like a useful improvement in the meantime.

bjorn3

@Mark-Simulacrum

These paths (_cranelift and _gcc) are somewhat misleading, since they
actually tell bootstrap to build all codegen backends. But this seems like
a useful improvement in the meantime.

This seems like it matches behavior for other such things (e.g., we build all compiler crates regardless of which one in particular is specified), so it definitely seems OK to me at this time.

@bors r+

@bors

📌 Commit 4c14383 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Apr 11, 2022

@jyn514

This seems like it matches behavior for other such things (e.g., we build all compiler crates regardless of which one in particular is specified), so it definitely seems OK to me at this time.

👍 Makes sense. Just FYI, I would like to make bootstrap more granular in the long term - #95503 is a first step there, and I hope to eventually remove all_crates together (which allows many different crates to build the same step without you thinking too hard about it).

@Mark-Simulacrum

Yeah, it makes sense to me as a goal (I often manually hack this by editing bootstrap with a -p flag when I want it today). I think we'll want to be careful around the UX of actually building a sysroot with std or without (since rustc is not "at" an obvious place in the crate tree) but we'll figure that out as we go, I'm sure.

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request

Apr 11, 2022

@Dylan-DPC

…Mark-Simulacrum

Remove duplicate aliases for check codegen_{cranelift,gcc} and fix build codegen_gcc

cc @bjorn3 @antoyo

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request

Apr 11, 2022

@Dylan-DPC

…Mark-Simulacrum

Remove duplicate aliases for check codegen_{cranelift,gcc} and fix build codegen_gcc

cc @bjorn3 @antoyo

This was referenced

Apr 11, 2022

bors added a commit to rust-lang-ci/rust that referenced this pull request

Apr 11, 2022

@bors

Rollup of 7 pull requests

Successful merges:

Failed merges:

r? @ghost @rustbot modify labels: rollup

@jyn514 jyn514 deleted the remove-duplicate-aliases branch

April 12, 2022 01:58

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request

Apr 17, 2022

@Dylan-DPC

…Simulacrum

Require all paths passed to ShouldRun::paths to exist on disk

This has two benefits:

  1. There is a clearer mental model of how bootstrap works. Steps correspond to paths on disk unless it's strictly impossible for them to do so (e.g. dist components).
  2. Bootstrap has better checks for internal consistency. This caught several issues:

Builds on rust-lang#95901 and should not be merged before.

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request

Apr 18, 2022

@Dylan-DPC

…Simulacrum

Require all paths passed to ShouldRun::paths to exist on disk

This has two benefits:

  1. There is a clearer mental model of how bootstrap works. Steps correspond to paths on disk unless it's strictly impossible for them to do so (e.g. dist components).
  2. Bootstrap has better checks for internal consistency. This caught several issues:

Builds on rust-lang#95901 and should not be merged before.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Apr 18, 2022

@bors

…mulacrum

Require all paths passed to ShouldRun::paths to exist on disk

This has two benefits:

  1. There is a clearer mental model of how bootstrap works. Steps correspond to paths on disk unless it's strictly impossible for them to do so (e.g. dist components).
  2. Bootstrap has better checks for internal consistency. This caught several issues:

Builds on rust-lang#95901 and should not be merged before.

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.