mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
tool/builddir: pass --ccache to run tool
With this patch, the build directory's CCACHE configuration is applied to the building of depot archives when using the --depot-auto-update feature. Note that this is effective only when resetting the hash files before building so that each depot-auto-update results in the same-named versions. Otherwise, the include paths (that include the version name as part of the path) make cache hits impossible. Issue #4004
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
# there is no need to change it.
|
# there is no need to change it.
|
||||||
#
|
#
|
||||||
# CONTRIB_DIR - location of ported 3rd-party source codes
|
# CONTRIB_DIR - location of ported 3rd-party source codes
|
||||||
|
# CCACHE - if set to 'yes', the build system uses the compiler cache
|
||||||
#
|
#
|
||||||
# REQUIRED_GCC_VERSION - GCC version required for building Genode
|
# REQUIRED_GCC_VERSION - GCC version required for building Genode
|
||||||
#
|
#
|
||||||
@@ -376,6 +377,8 @@ endif
|
|||||||
export CUSTOM_CC := $(CCACHED_CUSTOM_CC)
|
export CUSTOM_CC := $(CCACHED_CUSTOM_CC)
|
||||||
export CUSTOM_CXX := $(CCACHED_CUSTOM_CXX)
|
export CUSTOM_CXX := $(CCACHED_CUSTOM_CXX)
|
||||||
|
|
||||||
|
RUN_OPT_CCACHE := --ccache
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@@ -398,6 +401,7 @@ run/%: $(call select_from_repositories,run/%.run) $(RUN_ENV)
|
|||||||
--cross-dev-prefix "$(CROSS_DEV_PREFIX)" \
|
--cross-dev-prefix "$(CROSS_DEV_PREFIX)" \
|
||||||
--qemu-args "$(QEMU_OPT)" \
|
--qemu-args "$(QEMU_OPT)" \
|
||||||
--make "$(MAKE)" \
|
--make "$(MAKE)" \
|
||||||
|
$(RUN_OPT_CCACHE) \
|
||||||
$(RUN_OPT) \
|
$(RUN_OPT) \
|
||||||
--include $(RUN_SCRIPT)
|
--include $(RUN_SCRIPT)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user