Mac build: Add Rust targets to the pinned toolchain

`rustup target add` was run before `rustup default`, so targets were
added to the previous default toolchain rather than $RUST_VERSION.
This commit is contained in:
Dan Stillman 2026-10-01 13:28:47 -04:00
parent 0d0bbc8925
commit 9e234ee64f

View file

@ -27,8 +27,7 @@ export MOZ_BUILD_DATE=`date "+%Y%m%d%H%M%S"`
# Install required Rust version
rustup toolchain install $RUST_VERSION
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
rustup target add --toolchain $RUST_VERSION aarch64-apple-darwin x86_64-apple-darwin
rustup default $RUST_VERSION
cp "$SCRIPT_DIR/mozconfig" "$GECKO_PATH"