From: Michael Tremer Date: Tue, 28 May 2019 11:01:30 +0000 (+0100) Subject: ccache: Automatically set size to 8GB X-Git-Tag: v2.23-core133~49 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=4e54a8e2d6d4286f85a38a492d34452092404b24;ds=sidebyside ccache: Automatically set size to 8GB Signed-off-by: Michael Tremer --- diff --git a/lfs/ccache b/lfs/ccache index 22e71a12dc..94d7bd149e 100644 --- a/lfs/ccache +++ b/lfs/ccache @@ -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 ############################################################################### diff --git a/make.sh b/make.sh index 2d871a2cbf..30b42bbdbc 100755 --- a/make.sh +++ b/make.sh @@ -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