summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Gothe2022-01-12 16:13:43 +0000
committerJohn Crispin2024-12-12 10:01:56 +0000
commit1f11912138ce8a77cc0e2faa26942133d393b010 (patch)
tree755291c0f29b2ee650ac6b4388c8c43cb38ea448
parent36f309af05241f09b185c6297ef6361316719b50 (diff)
downloadopenwrt-1f11912138ce8a77cc0e2faa26942133d393b010.tar.gz
ccache: Speed up building.
- Disable compression for ccache's cached files. - Disable the hashing of the CWD inside debug information. This increases the cache hits drastically. Signed-off-by: Markus Gothe <markus.gothe@genexis.eu>
-rw-r--r--rules.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 54df407fca..9db7c72fa4 100644
--- a/rules.mk
+++ b/rules.mk
@@ -342,6 +342,8 @@ ifneq ($(CONFIG_CCACHE),)
TARGET_CXX:= ccache $(TARGET_CXX)
HOSTCC:= ccache $(HOSTCC)
HOSTCXX:= ccache $(HOSTCXX)
+ export CCACHE_NOHASHDIR:=true
+ export CCACHE_NOCOMPRESS:=true
export CCACHE_BASEDIR:=$(TOPDIR)
export CCACHE_DIR:=$(if $(call qstrip,$(CONFIG_CCACHE_DIR)),$(call qstrip,$(CONFIG_CCACHE_DIR)),$(TOPDIR)/.ccache)
export CCACHE_COMPILERCHECK:=%compiler% -dumpmachine; %compiler% -dumpversion