Skip to content

Commit 878421f

Browse files
committed
kbuild: Optimize ccache configuration
- Increased ccache cache size limit to 10GB for larger build support. - Enabled compression for ccache to reduce disk space usage while maintaining cache efficiency. Signed-off-by: UsiFX <xprjkts@gmail.com>
1 parent 5e9598e commit 878421f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kbuilder.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ for arg in "$@"; do
167167
# Let clang preprocess the code
168168
export CCACHE_CPP2=yes
169169

170+
# Set ccache options
171+
ccache --max-size=10G
172+
ccache --set-config compression=true
173+
170174
# Wrap toolchain with ccache in array listing
171175
for i in "${!FLAGS[@]}"; do
172176
case "${FLAGS[$i]}" in

0 commit comments

Comments
 (0)