Add ccache support to build system

This patch simplifies the use of ccache with the build system. Up until
now, each developer had to set up the ccache hooks manually, adjust the
PATH variable, and customize the etc/tools.conf in each build directory.
With the patch, ccache can be enabled by un-commenting a single line in
the etc/build.conf file.

Fixes #4004
This commit is contained in:
Norman Feske
2021-01-29 16:11:12 +01:00
parent 8cc2662aac
commit cbae9bc1c8
4 changed files with 80 additions and 9 deletions

View File

@@ -102,7 +102,7 @@ $(BUILD_DIR)/etc/build.conf:
@echo 'BASE_DIR := $$(GENODE_DIR)/repos/base' >> $@
@echo 'CONTRIB_DIR := $(CONTRIB_ABS_DIR)' >> $@
@echo >> $@
@for i in make_j run; do \
@for i in make_j ccache run; do \
cat $(GENODE_DIR)/tool/builddir/build.conf/$$i; done >> $@
@for i in ${BUILD_CONF(${PLATFORM})}; do \
cat $(GENODE_DIR)/tool/builddir/build.conf/$$i; done >> $@