]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
use $CC to choose the compiler
authorAndrew Tridgell <tridge@samba.org>
Fri, 28 Mar 2003 23:42:03 +0000 (00:42 +0100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 28 Mar 2003 23:42:03 +0000 (00:42 +0100)
test.sh

diff --git a/test.sh b/test.sh
index a34c98bc03de47545f2b5f7c9c9f7e22d9f1725b..993ecadfc257ee5aa09b47e92da90c383d2e4a08 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -3,7 +3,12 @@
 # a simple test suite for ccache
 # tridge@samba.org
 
-COMPILER=cc
+if test -n "$CC"; then
+ COMPILER="$CC"
+else
+ COMPILER=cc
+fi
+
 CCACHE=../ccache
 TESTDIR=test.$$