diff options
| author | Markus Gothe | 2022-01-12 16:13:43 +0000 |
|---|---|---|
| committer | John Crispin | 2024-12-12 10:01:56 +0000 |
| commit | 1f11912138ce8a77cc0e2faa26942133d393b010 (patch) | |
| tree | 755291c0f29b2ee650ac6b4388c8c43cb38ea448 | |
| parent | 36f309af05241f09b185c6297ef6361316719b50 (diff) | |
| download | openwrt-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.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |