]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
CCACHE_NOCOMPRESS needs to be set in order to use hard links
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 5 Jan 2010 19:19:24 +0000 (20:19 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 6 Jan 2010 21:23:10 +0000 (22:23 +0100)
ccache.yo
test.sh

index d4dd9f4945b5665425628a5c82b0065ab8a132ea..3d6b61cedb66d27c0f6b4d09121cc78d14137417 100644 (file)
--- a/ccache.yo
+++ b/ccache.yo
@@ -193,7 +193,8 @@ CCACHE_HARDLINK then ccache will attempt to use hard links from the
 cache directory when creating the compiler output rather than using a
 file copy. Using hard links is faster, but can confuse programs like
 'make' that rely on modification times. Hard links are never made for
-compressed cache files.
+compressed cache files. This means that you typically also should set
+the CCACHE_NOCOMPRESS variable if you want to use hard links.
 
 dit(bf(CCACHE_RECACHE)) This forces ccache to not use any cached
 results, even if it finds them. New results are still cached, but
diff --git a/test.sh b/test.sh
index d35b3addbeb551b67cf58370e48aae4267e78c8e..e57876862c00938fde028ac51a828c08b09b8619 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -293,8 +293,11 @@ hardlink_suite() {
     CCACHE_COMPILE="$CCACHE $COMPILER"
     CCACHE_HARDLINK=1
     export CCACHE_HARDLINK
+    CCACHE_NOCOMPRESS=1
+    export CCACHE_NOCOMPRESS
     base_tests
     unset CCACHE_HARDLINK
+    unset CCACHE_NOCOMPRESS
 }
 
 cpp2_suite() {