From 071bea3b3003893df9b4cc34b9b1dbae15e2df80 Mon Sep 17 00:00:00 2001 From: Guofang Date: Tue, 27 Oct 2026 21:13:07 +0800 Subject: [PATCH] Map macOS arm64 to aarch64 when fetching the Rust archive Co-Authored-By: Claude Sonnet 5.5 --- fetch-sources.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fetch-sources.sh b/fetch-sources.sh index f595d07..414537f 100755 --- a/fetch-sources.sh +++ b/fetch-sources.sh @@ -139,7 +139,10 @@ fetch arrow-apache-arrow-25.0.1.tar.gz \ # Rust ships one standalone tarball per architecture, named after `uname -m` (x86_64, aarch64). # It lives in its own sources/rust/ directory, which the Dockerfiles mount as a whole and pick the # archive from by architecture, so adding other sources never invalidates the Rust build layer. -rust_triple="$(uname -m)-unknown-linux-gnu" +rust_arch="$(uname -m)" +# macOS reports arm64 where Linux (and Rust) call it aarch64. +[ "$rust_arch" = arm64 ] && rust_arch=aarch64 +rust_triple="$rust_arch-unknown-linux-gnu" mkdir -p rust fetch "rust/rust-1.99.1-$rust_triple.tar.xz" \ "https://mirrors.cloud.tencent.com/rustup/dist/rust-1.99.1-$rust_triple.tar.xz" \