Resolve absolute sccache wrapper path on Apple
Some checks failed
Build Rust / Cargo Test (push) Waiting to run
Build Site / Next.js Build (push) Waiting to run
Build Apple / Build App (iOS Simulator) (push) Failing after 1m3s
Build Apple / Build App (macOS) (push) Failing after 1m45s

This commit is contained in:
Conrad Kramer 2026-03-19 00:33:34 -07:00
parent 4fbebdf85c
commit b81a3377df

View file

@ -71,6 +71,14 @@ fi
PROTOC=$(readlink -f $(which protoc))
CARGO_PATH="$(dirname $PROTOC):$CARGO_PATH"
if [[ -n "${RUSTC_WRAPPER:-}" && "${RUSTC_WRAPPER}" != /* ]]; then
WRAPPER_PATH="$(command -v "${RUSTC_WRAPPER}" || true)"
if [[ -n "${WRAPPER_PATH}" ]]; then
RUSTC_WRAPPER="${WRAPPER_PATH}"
CARGO_PATH="$(dirname "${WRAPPER_PATH}"):$CARGO_PATH"
fi
fi
# Run cargo without the various environment variables set by Xcode.
# Those variables can confuse cargo and the build scripts it runs.
EXTRA_ENV=()