Description
I cross-compile code for Darwin from Linux, which now fails due to the strip
path being hard-coded in latest nightly, which I believe is caused by this PR #130781
I expected to see this happen: successful compilation
Instead, this happened:
error: unable to run `/usr/bin/strip`: No such file or directory (os error 2)
https://github.com/rvolosatovs/nixify/actions/runs/11163623704/job/31031050404?pr=265
I'm not sure why /usr/bin/strip
was chosen as the strip
to use, as an end user - that is surprising, in fact I would have expected the strip
from the environment to be used by default. If the intention is to set a default to a hardcoded path, then it looks like a configuration option must be provided.
Alternatively, perhaps cargo
could use /usr/bin/strip
if found and otherwise use strip
from environment?
Version it worked on
It most recently worked on: 1.80.1
Version with regression
rustc --version --verbose
:
cargo 1.83.0-nightly (80d82ca22 2024-09-27)