-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
bootstrap: Remove the distinction between compiler and compiler_for #96176
Copy link
Copy link
Open
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call 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)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Metadata
Metadata
Assignees
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call 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)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried changing this and it went ... not well. Removing
compileraltogether gives 71 build errors, and changing it to aliascompiler_for(stage, host, host)fails a bunch of the tests, including some that look like real issues:Looking at the call sites, they usually look like this:
so I think the "proper" fix is to pass
run.targetinto compiler_for in most of these cases; at very least, we can't assume it's alwayshost.In some cases it may not be clear what target is appropriate - feel free to ask on Zulip.
@rustbot label +A-rustbuild +E-mentor +E-medium
Originally posted by @jyn514 in #96000 (comment)