mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-19 11:36:12 +08:00
sccache: Add arm linux support
Change-Id: I630cdc7bbff320c6ca8e17b33f0e9fc05f6a63af
Reviewed-by: Simo Fält <simo.falt@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
(cherry picked from commit cad194524e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
f9f017bf5a
commit
df4d7fb42d
@@ -6,7 +6,14 @@ set -ex
|
|||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../unix/sccache.sh"
|
source "${BASH_SOURCE%/*}/../unix/sccache.sh"
|
||||||
|
|
||||||
targetArch=x86_64-unknown-linux-musl
|
|
||||||
targetVersion=0.2.14
|
targetVersion=0.2.14
|
||||||
sha1=281680c0fc2c09173e94d12ba45d9f1b8e62e5b3
|
|
||||||
|
if [[ $(uname -m) == 'aarch64' ]]; then
|
||||||
|
targetArch=aarch64-unknown-linux-musl
|
||||||
|
sha1=0f9b57c423d77f7aa89bb642864ac7689d84d6a0
|
||||||
|
else
|
||||||
|
targetArch=x86_64-unknown-linux-musl
|
||||||
|
sha1=281680c0fc2c09173e94d12ba45d9f1b8e62e5b3
|
||||||
|
fi
|
||||||
|
|
||||||
installSccache "$targetArch" "$targetVersion" "$sha1"
|
installSccache "$targetArch" "$targetVersion" "$sha1"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ function installSccache {
|
|||||||
|
|
||||||
sudo mkdir -p /usr/local/sccache
|
sudo mkdir -p /usr/local/sccache
|
||||||
sudo tar -C /usr/local/sccache -x -z --totals --strip-components=1 --file="$targetFile"
|
sudo tar -C /usr/local/sccache -x -z --totals --strip-components=1 --file="$targetFile"
|
||||||
|
sudo chmod +x /usr/local/sccache/sccache
|
||||||
|
|
||||||
# add sccache __before__ the real compiler
|
# add sccache __before__ the real compiler
|
||||||
SetEnvVar "PATH" "/usr/local/sccache:\$PATH"
|
SetEnvVar "PATH" "/usr/local/sccache:\$PATH"
|
||||||
@@ -32,4 +33,7 @@ function installSccache {
|
|||||||
chmod 755 "$HOME/sccache_wrapper/sccache"
|
chmod 755 "$HOME/sccache_wrapper/sccache"
|
||||||
SetEnvVar "PATH" "$HOME/sccache_wrapper:\$PATH"
|
SetEnvVar "PATH" "$HOME/sccache_wrapper:\$PATH"
|
||||||
|
|
||||||
|
# Prevents some random network I/O errors from failing compilation
|
||||||
|
# Does not seem to affect much though
|
||||||
|
SetEnvVar "SCCACHE_IGNORE_SERVER_IO_ERROR" "1"
|
||||||
}
|
}
|
||||||
|
|||||||
3
coin/provisioning/qtci-linux-Debian-11.6-aarch64/20-sccache.sh
Executable file
3
coin/provisioning/qtci-linux-Debian-11.6-aarch64/20-sccache.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source "${BASH_SOURCE%/*}/../common/linux/sccache.sh"
|
||||||
3
coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/20-sccache.sh
Executable file
3
coin/provisioning/qtci-linux-Ubuntu-22.04-aarch64/20-sccache.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source "${BASH_SOURCE%/*}/../common/linux/sccache.sh"
|
||||||
3
coin/provisioning/qtci-linux-Ubuntu-24.04-aarch64/20-sccache.sh
Executable file
3
coin/provisioning/qtci-linux-Ubuntu-24.04-aarch64/20-sccache.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source "${BASH_SOURCE%/*}/../common/linux/sccache.sh"
|
||||||
Reference in New Issue
Block a user