From f98719bc9048dc72072c55cd5b5432493cc8a3b1 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 5 Jan 2010 20:19:24 +0100 Subject: [PATCH] CCACHE_NOCOMPRESS needs to be set in order to use hard links --- ccache.yo | 3 ++- test.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ccache.yo b/ccache.yo index d4dd9f494..3d6b61ced 100644 --- 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 d35b3addb..e57876862 100755 --- 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() { -- 2.47.3