From c6d36328141a37222c67c73ec760bc5d352d9c3f Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 5 Oct 2023 13:37:32 +0200 Subject: [PATCH] Added shasum and download file for arm architecture. --- contrib/utilities/download_clang_format | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/contrib/utilities/download_clang_format b/contrib/utilities/download_clang_format index 8ded91ec1f..4479e0a2fc 100755 --- a/contrib/utilities/download_clang_format +++ b/contrib/utilities/download_clang_format @@ -38,9 +38,15 @@ case "${OSTYPE}" in CHECKSUM="e6d92ab1b385f5e4392466a3cf651a9e403a5c212f4c1c3737ee173bc6d79d93 $FILENAME" ;; darwin*) - FILENAME="clang-format-${VERSION}-darwin-intel.tar.gz" CHECKSUM_CMD="shasum" - CHECKSUM="edff4341fb3b9e25c670902227538be6348d3b91ff88aa676ff8e7bb589b2ae5 $FILENAME" + ARCH=$(uname -m) + if [[ "$ARCH" == "arm64" ]]; then + FILENAME="clang-format-${VERSION}-darwin-arm.tar.gz" + CHECKSUM="8b1733414dec5a91e15060f482bebeb0723ac8e8f3115241c1ea595302758b46 $FILENAME" + else + FILENAME="clang-format-${VERSION}-darwin-intel.tar.gz" + CHECKSUM="edff4341fb3b9e25c670902227538be6348d3b91ff88aa676ff8e7bb589b2ae5 $FILENAME" + fi ;; *) echo "unknown: ${OSTYPE}" -- 2.39.5