mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-07 23:46:51 +08:00
Install the ARM sccache binary to fix /usr/local/sccache/sccache: Bad CPU type in executable Change-Id: I033a7c8cf88d0d1ad35a4406a5d2a878da8d17a7 Reviewed-by: Toni Saario <toni.saario@qt.io> (cherry picked from commitc872c35cc6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit91c649c20e)
18 lines
503 B
Bash
Executable File
18 lines
503 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2019 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
set -ex
|
|
|
|
source "${BASH_SOURCE%/*}/../unix/sccache.sh"
|
|
|
|
targetVersion=0.2.14
|
|
if [[ `arch` == arm* ]]; then
|
|
targetArch=aarch64-apple-darwin
|
|
sha1=ad10cd4b8889fa08e193a4165ac664876a27c0dc
|
|
else
|
|
targetArch=x86_64-apple-darwin
|
|
sha1=764bc1664c0ff616d9980a6d127175d0a2041781
|
|
fi
|
|
installSccache "$targetArch" "$targetVersion" "$sha1"
|