From c872c35cc6d973d31491c0817676a595802eb201 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 21 Jun 2024 14:44:25 +0200 Subject: [PATCH] COIN: Fix sccache installation on ARM Macs Install the ARM sccache binary to fix /usr/local/sccache/sccache: Bad CPU type in executable Pick-to: 6.8 6.7 Change-Id: I033a7c8cf88d0d1ad35a4406a5d2a878da8d17a7 Reviewed-by: Toni Saario --- coin/provisioning/common/macos/sccache.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/coin/provisioning/common/macos/sccache.sh b/coin/provisioning/common/macos/sccache.sh index 85c4aee2..7896edb6 100755 --- a/coin/provisioning/common/macos/sccache.sh +++ b/coin/provisioning/common/macos/sccache.sh @@ -6,7 +6,12 @@ set -ex source "${BASH_SOURCE%/*}/../unix/sccache.sh" -targetArch=x86_64-apple-darwin targetVersion=0.2.14 -sha1=764bc1664c0ff616d9980a6d127175d0a2041781 +if [[ `arch` == arm* ]]; then + targetArch=aarch64-apple-darwin + sha1=ad10cd4b8889fa08e193a4165ac664876a27c0dc +else + targetArch=x86_64-apple-darwin + sha1=764bc1664c0ff616d9980a6d127175d0a2041781 +fi installSccache "$targetArch" "$targetVersion" "$sha1"