Skip to content

Commit fbd4bbf

Browse files
authored
Arm backend: Support installing musl toolchain on aarch64 (pytorch#22019)
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani Signed-off-by: Erik Lundell <erik.lundell@arm.com>
1 parent e4576d0 commit fbd4bbf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎backends/arm/scripts/toolchain_utils.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ function musl_select_toolchain() {
8181
toolchain_dir="aarch64-linux-musl-cross"
8282
toolchain_md5_checksum="a6bb806af217a91cf575e15163e8b12b"
8383
toolchain_archive="${toolchain_dir}.tgz"
84+
elif [[ "${ARCH}" == "aarch64" ]] || [[ "${ARCH}" == "arm64" ]] ; then
85+
# musl.cc serves this fine to developers but has never answered the link
86+
# check from a GitHub hosted runner.
87+
toolchain_url="https://musl.cc/aarch64-linux-musl-native.tgz" # @lint-ignore
88+
toolchain_dir="aarch64-linux-musl-native"
89+
toolchain_md5_checksum="56d9325e5fad39ee495dfbba95df17a7"
90+
toolchain_archive="${toolchain_dir}.tgz"
8491
else
8592
log_step "toolchain" "Error: Unsupported architecture ${ARCH} for musl toolchain"
8693
exit 1

0 commit comments

Comments
 (0)