From ceb24c90ff9bafe753fe01c2128f962a60b6193e Mon Sep 17 00:00:00 2001 From: Daniel Shaulov Date: Tue, 15 Feb 2022 21:12:05 +0200 Subject: [PATCH] unix: wrap sccache call with HAVE_SCCACHE Despite checking for the existence of sccache, there is a naked call to it not wrapped with the check for `HAVE_SCCACHE`, added the check --- cpython-unix/build-gcc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpython-unix/build-gcc.sh b/cpython-unix/build-gcc.sh index 737cb737..7441dbb5 100755 --- a/cpython-unix/build-gcc.sh +++ b/cpython-unix/build-gcc.sh @@ -58,4 +58,7 @@ make -j `nproc` make -j `nproc` install DESTDIR=/build/out popd -sccache -s +if [ -n "${HAVE_SCCACHE}" ]; then + sccache -s +fi +