Skip to content

Commit

Permalink
COIN: Fix sccache installation on ARM Macs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
e4z9 committed Jun 25, 2024
1 parent 9b5e0b5 commit c872c35
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions coin/provisioning/common/macos/sccache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c872c35

Please sign in to comment.