From: Markus Gothe Date: Wed, 12 Jan 2022 16:13:43 +0000 (+0100) Subject: ccache: Speed up building. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1f11912138ce8a77cc0e2faa26942133d393b010;p=openwrt%2Fstaging%2Fstintel.git 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 --- 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