[beta 1.97] dont apply host-config gating to stable behavior#17211
Merged
Conversation
Captured behaviors are likely bugs introduced by rust-lang#17123 See also rust-lang/miri#5101
rust-lang#17123 made host artifacts stop picking up `target.'cfg(..)'.runner` and `target.'cfg(..)'.linker` even without `-Ztarget-applies-to-host -Zhost-config`. That silently changed stable behavior that `target.'cfg(..)'` no longer applied to proc-macro and build script compilation under `--target <host>`, while `target.<triple>` config still did. The old gate reused `host_artifact_uses_only_host_config`, which is for the documented rustflags dual behavior. It wasn't for runner and linker. This PR narrows the gate to `target-applies-to-host = false` and restore to pre PR 17123 stable behavior, while keeping `-Zhost-config` fix as it is still nightly.
Collaborator
|
r? @ehuss rustbot has assigned @ehuss. Use Why was this reviewer chosen?The reviewer was selected based on:
|
Collaborator
|
epage
approved these changes
Jul 14, 2026
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Jul 15, 2026
[beta-1.98] Update cargo 1 commits in 864064524a7205e670579b6873d9b18897437eaf..d33be5d17d90eeb98d6fa329b5d46b6587493ea2 2026-07-12 08:11:54 -0700 to 2026-07-14 07:38:28 -0500 - [beta 1.97] dont apply host-config gating to stable behavior (rust-lang/cargo#17211)
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Jul 15, 2026
[beta-1.98] Update cargo 1 commits in 864064524a7205e670579b6873d9b18897437eaf..d33be5d17d90eeb98d6fa329b5d46b6587493ea2 2026-07-12 08:11:54 -0700 to 2026-07-14 07:38:28 -0500 - [beta 1.97] dont apply host-config gating to stable behavior (rust-lang/cargo#17211)
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Jul 16, 2026
[beta-1.98] Update cargo 1 commits in 864064524a7205e670579b6873d9b18897437eaf..d33be5d17d90eeb98d6fa329b5d46b6587493ea2 2026-07-12 08:11:54 -0700 to 2026-07-14 07:38:28 -0500 - [beta 1.97] dont apply host-config gating to stable behavior (rust-lang/cargo#17211)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Beta backports
In order to make CI pass, the following PRs are also cherry-picked: