You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to set up sccache and I have a wrapper script at a location scripts/coverage-wrappers/rustc that I set RUSTC_WORKSPACE_WRAPPER to.
Cargo then invokes $RUSTC_WRAPPER $RUSTC_WORKSPACE_WRAPPER $RUSTC "$@", sccache compiler detection code notices that $RUSTC_WORKSPACE_WRAPPER is named rustc and tries to invoke $RUSTC_WORKSPACE_WRAPPER -v which naturally fails, because the first argument ain’t $RUSTC as expected by the wrapper.
I think detection logic should be adjusted to check if the first argument to sccache is actually the same thing as $RUSTC_WORKSPACE_WRAPPER and then use the next argument to query version. Or a possible alternative is to invoke $RUSTC_WORKSPACE_WRAPPER $RUSTC ${SCCACHE_ARGS}.
The text was updated successfully, but these errors were encountered:
Only after I manually set $CARGO=1 did things started chugging along, which suggests to me that perhaps cargo isn’t always setting $CARGO environment variable? Might be bug in cargo too, though. Not sure.
I’m trying to set up sccache and I have a wrapper script at a location
scripts/coverage-wrappers/rustc
that I setRUSTC_WORKSPACE_WRAPPER
to.Cargo then invokes
$RUSTC_WRAPPER $RUSTC_WORKSPACE_WRAPPER $RUSTC "$@"
, sccache compiler detection code notices that$RUSTC_WORKSPACE_WRAPPER
is namedrustc
and tries to invoke$RUSTC_WORKSPACE_WRAPPER -v
which naturally fails, because the first argument ain’t$RUSTC
as expected by the wrapper.I think detection logic should be adjusted to check if the first argument to
sccache
is actually the same thing as$RUSTC_WORKSPACE_WRAPPER
and then use the next argument to query version. Or a possible alternative is to invoke$RUSTC_WORKSPACE_WRAPPER $RUSTC ${SCCACHE_ARGS}
.The text was updated successfully, but these errors were encountered: