Stabilize Apple Namespace build caches
This commit is contained in:
parent
7fb6419fa0
commit
2da0244d42
2 changed files with 16 additions and 0 deletions
|
|
@ -79,6 +79,14 @@ if [[ -n "${RUSTC_WRAPPER:-}" && "${RUSTC_WRAPPER}" != /* ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ -x "$(command -v rustup)" ]]; then
|
||||
for TARGET in "${RUST_TARGETS[@]}"; do
|
||||
if ! rustup target list --installed | grep -qx "${TARGET}"; then
|
||||
rustup target add "${TARGET}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Run cargo without the various environment variables set by Xcode.
|
||||
# Those variables can confuse cargo and the build scripts it runs.
|
||||
EXTRA_ENV=()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue