From: Jean Guyader Date: Tue, 24 Nov 2009 14:31:01 +0000 (+0000) Subject: dependencies: Check for ccache. X-Git-Url: http://xenbits.xen.org/gitweb?a=commitdiff_plain;h=d7b364b07dcd92210e37ee22d9d961e8faf11219;p=xenclient%2Fbuild.git dependencies: Check for ccache. --- 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