-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Slightly refactor TargetSelection
in bootstrap
#128983
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
This PR modifies If appropriate, please update |
Feel free to r=me once rebased. |
e1613ea
to
1c0c2c3
Compare
@bors r=onur-ozkan |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#128643 (Refactor `powerpc64` call ABI handling) - rust-lang#128655 (std: refactor UNIX random data generation) - rust-lang#128745 (Remove unused lifetime parameter from spawn_unchecked) - rust-lang#128841 (bootstrap: don't use rustflags for `--rustc-args`) - rust-lang#128983 (Slightly refactor `TargetSelection` in bootstrap) - rust-lang#129026 (CFI: Move CFI ui tests to cfi directory) - rust-lang#129040 (Fix blessing of rmake tests) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#128983 - Kobzol:bootstrap-target, r=onur-ozkan Slightly refactor `TargetSelection` in bootstrap Mostly a drive-by refactoring of `TargetSelection` to reduce some manual "windows-gnu" detection and also accesses to the `triple` field. r? `@onur-ozkan`
@Kobzol I stumbled upon this PR as it conflicted with my #128876 Looking more into it, we now join |
I tried to only replace situations where the target was joined as a path, so that the |
Oh, this one: 1c0c2c3#diff-11a177c4925352bc8852241c59fd49c369df531495f11f81914eb6972783bb8aR522 That's not great, I'll send a fix. Thank you! |
Fixed in #129056. Thanks! |
…zkan Fix one usage of target triple in bootstrap This bug was introduced in rust-lang#128983. In this one case, the `TargetSelection` was also used as `Display` (not just as `Path`), which I did not notice in the original PR. If the target contained a custom file, it would be included in its `Display` formatting, even though only the triple should be used. Found [here](rust-lang#128983 (comment)). r? `@onur-ozkan`
Rollup merge of rust-lang#129056 - Kobzol:fix-target-triple, r=onur-ozkan Fix one usage of target triple in bootstrap This bug was introduced in rust-lang#128983. In this one case, the `TargetSelection` was also used as `Display` (not just as `Path`), which I did not notice in the original PR. If the target contained a custom file, it would be included in its `Display` formatting, even though only the triple should be used. Found [here](rust-lang#128983 (comment)). r? `@onur-ozkan`
Mostly a drive-by refactoring of
TargetSelection
to reduce some manual "windows-gnu" detection and also accesses to thetriple
field.r? @onur-ozkan