tools: protect ccache detection to avoid pollution on stderr
authorJean Privat <jean@pryen.org>
Mon, 27 Feb 2012 21:00:45 +0000 (16:00 -0500)
committerJean Privat <jean@pryen.org>
Mon, 27 Feb 2012 21:19:50 +0000 (16:19 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

bin/gccx

index 8159f30..fa369a6 100755 (executable)
--- a/bin/gccx
+++ b/bin/gccx
@@ -69,7 +69,7 @@ return $res
 }
 
 cache=true
-if ccache -V 2>/dev/null >/dev/null; then
+if ( ccache -V ) 2>/dev/null >/dev/null; then
        cache=ccache
 fi