mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
ccache: add option to let set cache size (default now 10GB)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
56ae900e50
commit
268bed238a
@ -57,6 +57,13 @@ fi
|
||||
# multi-processor computer (like hyperthreading SMP CPU)
|
||||
CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'`
|
||||
|
||||
# cache size for ccache
|
||||
# Set the maximum size of the files stored in the cache. You can specify a
|
||||
# value in gigabytes, megabytes or kilobytes by appending a G, M or K to the
|
||||
# value. The default is gigabytes. The actual value stored is rounded down to
|
||||
# the nearest multiple of 16 kilobytes.
|
||||
CCACHE_CACHE_SIZE="10G"
|
||||
|
||||
# forcing install of all packages (yes/no)
|
||||
FORCE_INSTALL="no"
|
||||
|
||||
|
@ -34,6 +34,9 @@ make
|
||||
mkdir -p $ROOT/$TOOLCHAIN/bin
|
||||
cp -f ccache $ROOT/$TOOLCHAIN/bin
|
||||
|
||||
# setup ccache
|
||||
$ROOT/$TOOLCHAIN/bin/ccache --max-size=$CCACHE_CACHE_SIZE
|
||||
|
||||
cat > $HOST_CC <<EOF
|
||||
#!/bin/sh
|
||||
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CC "\$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user