authorclover caruso <git@paperclover.net> 2026-10-10 19:46:15-07:00
committerclover caruso <git@paperclover.net> 2026-10-10 22:56:05-07:00
log43477347100b0d4076ef55ad09b7e6866a33b1d0
tree015db4ac02cd52c8c0713b5868fc175c78b79295
parent4d3423530b057c7ffff2fb9d8243ded3df93ea11
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU (~clover)

fix: preserve bounded Cargo jobs in iOS builds

Forward CARGO_BUILD_JOBS through the sanitized Xcode build environment, defaulting to two jobs. Fixes #114 Assisted-by: gpt-6.1-sol

1 files changed, 1 insertions(+), 1 deletions(-)

apps/ios/build-rust.sh+1-1
...@@ -10,7 +10,7 @@ release=...@@ -10,7 +10,7 @@ release=
10root="$SRCROOT/../.."10root="$SRCROOT/../.."
11# Xcode's SDK variables would point host build scripts at the iOS SDK.11# Xcode's SDK variables would point host build scripts at the iOS SDK.
12exec env -i HOME="$HOME" PATH="$HOME/.cargo/bin:/etc/profiles/per-user/$USER/bin:/run/current-system/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin" USER="$USER" \12exec env -i HOME="$HOME" PATH="$HOME/.cargo/bin:/etc/profiles/per-user/$USER/bin:/run/current-system/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin" USER="$USER" \
13 CARGO_TARGET_DIR="$root/target/ios" IPHONEOS_DEPLOYMENT_TARGET="$IPHONEOS_DEPLOYMENT_TARGET" \13 CARGO_TARGET_DIR="$root/target/ios" CARGO_BUILD_JOBS="${CARGO_BUILD_JOBS:-2}" IPHONEOS_DEPLOYMENT_TARGET="$IPHONEOS_DEPLOYMENT_TARGET" \
14 sh -ec '14 sh -ec '
15 python3 "$1/tools/cargo_fresh.py" --target "$2" $315 python3 "$1/tools/cargo_fresh.py" --target "$2" $3
16 exec cargo build --manifest-path "$1/Cargo.toml" -p mobile --target "$2" $316 exec cargo build --manifest-path "$1/Cargo.toml" -p mobile --target "$2" $3