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>
This commit is contained in:
parent
36f309af05
commit
1f11912138
1 changed files with 2 additions and 0 deletions
2
rules.mk
2
rules.mk
|
@ -342,6 +342,8 @@ ifneq ($(CONFIG_CCACHE),)
|
||||||
TARGET_CXX:= ccache $(TARGET_CXX)
|
TARGET_CXX:= ccache $(TARGET_CXX)
|
||||||
HOSTCC:= ccache $(HOSTCC)
|
HOSTCC:= ccache $(HOSTCC)
|
||||||
HOSTCXX:= ccache $(HOSTCXX)
|
HOSTCXX:= ccache $(HOSTCXX)
|
||||||
|
export CCACHE_NOHASHDIR:=true
|
||||||
|
export CCACHE_NOCOMPRESS:=true
|
||||||
export CCACHE_BASEDIR:=$(TOPDIR)
|
export CCACHE_BASEDIR:=$(TOPDIR)
|
||||||
export CCACHE_DIR:=$(if $(call qstrip,$(CONFIG_CCACHE_DIR)),$(call qstrip,$(CONFIG_CCACHE_DIR)),$(TOPDIR)/.ccache)
|
export CCACHE_DIR:=$(if $(call qstrip,$(CONFIG_CCACHE_DIR)),$(call qstrip,$(CONFIG_CCACHE_DIR)),$(TOPDIR)/.ccache)
|
||||||
export CCACHE_COMPILERCHECK:=%compiler% -dumpmachine; %compiler% -dumpversion
|
export CCACHE_COMPILERCHECK:=%compiler% -dumpmachine; %compiler% -dumpversion
|
||||||
|
|
Loading…
Reference in a new issue