ccache: Automatically set size to 8GB

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-05-28 12:01:30 +01:00
parent 992fdd3d07
commit 4e54a8e2d6
2 changed files with 4 additions and 3 deletions

View File

@@ -40,9 +40,6 @@ ifeq "$(PASS)" "1"
CFLAGS := $(patsubst -mfunction-return=%,,$(CFLAGS))
endif
# Set max cache size to 5GB
CFLAGS += -DDEFAULT_MAXSIZE=5242880
###############################################################################
# Top-level Rules
###############################################################################

View File

@@ -520,6 +520,9 @@ prepareenv() {
SYSTEM_RELEASE="${SYSTEM_RELEASE} - Development Build: $GIT_BRANCH/$GIT_LASTCOMMIT$GIT_STATUS"
;;
esac
# Setup ccache cache size
enterchroot ccache --max-size="${CCACHE_CACHE_SIZE}" >/dev/null
}
enterchroot() {
@@ -900,6 +903,7 @@ update_contributors() {
}
# Default settings
CCACHE_CACHE_SIZE="8G"
ENABLE_RAMDISK="auto"
# Load configuration file