Skip to content

forced-target does not work with host-tuple #17383

Description

@thealtofwar

Problem

When using forced-target on a package, host-tuple isn't substituted properly and causes an issue

[package]
name = "pkg"
version = "0.1.0"
edition = "2024"
forced-target = "host-tuple"

[dependencies]

Steps

Check https://github.com/thealtofwar/forced-target-host-tuple-repro

Possible Solution(s)

Apply the same host-tuple change that is applied to --target to this

Notes

No response

Version

cargo 1.93.0-nightly (2d4fa1395 2025-11-12)
release: 1.93.0-nightly
commit-hash: 2d4fa139552ebdd5f091a1401ed03f7dc62cb43f
commit-date: 2025-11-12
host: x86_64-pc-windows-msvc
libgit2: 1.9.1 (sys:0.20.2 vendored)
libcurl: 8.15.0-DEV (sys:0.4.83+curl-8.15.0 vendored ssl:Schannel)
os: Windows 10.0.26200 (Windows 11 Professional) [64-bit]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.Z-per-package-targetNightly: per-package-target

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions