Skip to content

[beta 1.97] dont apply host-config gating to stable behavior#17211

Merged
epage merged 3 commits into
rust-lang:rust-1.98.0from
weihanglo:beta-1.98-backport
Jul 14, 2026
Merged

[beta 1.97] dont apply host-config gating to stable behavior#17211
epage merged 3 commits into
rust-lang:rust-1.98.0from
weihanglo:beta-1.98-backport

Conversation

@weihanglo

Copy link
Copy Markdown
Member

Beta backports

In order to make CI pass, the following PRs are also cherry-picked:

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.
@rustbot rustbot added A-build-execution Area: anything dealing with executing the compiler A-cfg-expr Area: Platform cfg expressions S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 14, 2026
@rustbot

rustbot commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, epage

@rustbot

rustbot commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against rust-1.98.0. Please double check that you specified the right target!

@epage
epage merged commit d33be5d into rust-lang:rust-1.98.0 Jul 14, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label 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)
@rustbot rustbot added this to the 1.98.0 milestone Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-build-execution Area: anything dealing with executing the compiler A-cfg-expr Area: Platform cfg expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants