ccache: fix build with CCACHE_DISABLE

This commit is contained in:
Jonas Karlman 2016-12-26 14:26:12 +01:00
parent 40f9e93a60
commit 9c7335564c

View File

@ -38,7 +38,9 @@ PKG_CONFIGURE_OPTS_HOST="--with-bundled-zlib"
post_makeinstall_host() {
# setup ccache
$ROOT/$TOOLCHAIN/bin/ccache --max-size=$CCACHE_CACHE_SIZE
if [ -z "$CCACHE_DISABLE" ]; then
$ROOT/$TOOLCHAIN/bin/ccache --max-size=$CCACHE_CACHE_SIZE
fi
cat > $ROOT/$TOOLCHAIN/bin/host-gcc <<EOF
#!/bin/sh