Skip to content

Regression: CARGO_TARGET_<triple>_RUNNER used for build scripts #16634

@briansmith

Description

@briansmith

Problem

The regression first occurred in nightly-2026-02-12; nightly-2026-02-11 works correctly.

I have configured CARGO_TARGET_<triple>_RUNNER=mk/script.sh. Previously, build scripts were not affected CARGO_TARGET__RUNNER. My mk/script.sh fails when Cargo uses it to run a build script because the script is expecting to operate on other kinds of executables. Namely, it runs the executables under qemu-user to test how it works on a particular CPU model. However, build scripts shouldn't be run under QEMU.

I suspect this is a regression due to #16599.

Steps

CARGO_TARGET_AARCH64_APPLE_DARWIN_RUNNER=mk/script.sh cargo test

Possible Solution(s)

Revert/fix PR #16599.

Version

nightly-2026-02-12

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions