Add missing CARGO_TARGET_APPLIES_TO_HOST

Based on the comment of the test case, it appears that this should have been added
This commit is contained in:
Arlo Siemsen 2026-02-24 15:16:19 -06:00
parent b3882b18a7
commit 08a9ca0152

View File

@ -1339,6 +1339,7 @@ fn host_linker_does_not_apply_to_binary_build() {
// host.linker should not be applied but target.linker
p.cargo("build -Z target-applies-to-host -Z host-config")
.masquerade_as_nightly_cargo(&["target-applies-to-host", "host-config"])
.env("CARGO_TARGET_APPLIES_TO_HOST", "false")
.with_status(101)
// Need to omit some MSVC-specific diagnostics
// because rustc prints extra stuff when linker was not found.