Files
qt5/coin/provisioning/common/unix/sccache_wrapper
Simo Fält 419bf67853 Add wrapper for sccache command in Linux and macOS
The sccache tends to fail every now and then. Adding a wrapper
which calls build tools directly if first call with sccacche fails.

Task-number: COIN-740
Change-Id: Ic03cf991da585d1569387118183763497ea73b72
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit e8495fc86e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2022-08-12 13:38:17 +00:00

15 lines
387 B
Bash
Executable File

#!/usr/bin/env bash
# Call real sccache with original arguments
# sccache /opt/android/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none ......
real_sccache=/usr/local/sccache/sccache
$real_sccache "$@"
retval=$?
if test $retval -ne 0
then
echo "Sccache command failed, re-try calling build tool directly"
"$@"
retval=$?
fi
exit $retval