mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
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
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 New Issue
Block a user