]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Make CCACHE_COMPILE available in all suites
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Jul 2016 18:00:39 +0000 (20:00 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Jul 2016 18:00:39 +0000 (20:00 +0200)
test.sh

diff --git a/test.sh b/test.sh
index 2ec4880facba2e75eb5044ac1988312e789c1f0f..d32dca3ebcadfd4857d854d2aaa0dc78cdc76806 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -753,7 +753,6 @@ EOF
 }
 
 base_suite() {
-    CCACHE_COMPILE="$CCACHE $COMPILER"
     base_tests
 }
 
@@ -2670,6 +2669,8 @@ if [ -z "$CCACHE" ]; then
     CCACHE=`pwd`/ccache
 fi
 
+CCACHE_COMPILE="$CCACHE $COMPILER"
+
 # save the type of compiler because some test may not work on all compilers
 COMPILER_TYPE_CLANG=0
 COMPILER_TYPE_GCC=0