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
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. Mymk/script.shfails 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 testPossible Solution(s)
Revert/fix PR #16599.
Version