From d7b364b07dcd92210e37ee22d9d961e8faf11219 Mon Sep 17 00:00:00 2001 From: Jean Guyader Date: Tue, 24 Nov 2009 14:31:01 +0000 Subject: [PATCH] dependencies: Check for ccache. --- toolchain/dependencies/dependencies.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/toolchain/dependencies/dependencies.sh b/toolchain/dependencies/dependencies.sh index 66f95c2..17151bf 100755 --- a/toolchain/dependencies/dependencies.sh +++ b/toolchain/dependencies/dependencies.sh @@ -438,6 +438,20 @@ rm -f "$tmpfile.c" rm -f "$tmpfile" +# Check if ccache can create binary +tmpfile=`mktemp` +cat &>"$tmpfile.c" < /dev/null 2>&1 && "$tmpfile" ; then + disp "ccache" "KO" + exit 1; +fi +disp "ccache" "OK" +rm -f "$tmpfile.c" +rm -f "$tmpfile" + ############################################################# # # All done -- 2.39.5