Deduplicate codegen backends in bootstrap config#158516
Conversation
This comment has been minimized.
This comment has been minimized.
|
This PR modifies If appropriate, please update |
|
Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @jieyouxu (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
Why was this reviewer chosen?The reviewer was selected based on:
|
There was a problem hiding this comment.
I don't understand what you mean by
This avoids carrying redundant backend entries into later bootstrap planning.
Can you elaborate? Also the testing section in PR description is surprising, why does that go through cargo test, and not... bootstrap?
@rustbot author
|
Reminder, once the PR becomes ready for a review, use |
|
Thanks, that sentence was unclear. I meant that duplicate entries in You're right about the testing section. I reran it through bootstrap: @rustbot ready |
|
We treat this array as a set anyway, except for caring which of the backends was specified as the first one. If anything, specifying the same backend multiple times should be an error, not a silent skip. |
This comment has been minimized.
This comment has been minimized.
|
i finished it, thank u @rustbot ready |
Deduplicate
rust.codegen-backendsandtarget.<triple>.codegen-backendsduring bootstrap config parsing while preserving first occurrence order.This avoids carrying redundant backend entries into later bootstrap planning.
test:
result: