aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2014-12-21 19:12:40 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2014-12-26 06:57:51 +0000
commitc21d5294a1b770537ab193332106f1bb10706d64 (patch)
tree0d79839a2e8439b4b87e9dfda1c0f31609de2dc3
parent2e805ef213c951c49044611b8c362021d66345a8 (diff)
downloadlinaro-android-build-tools-c21d5294a1b770537ab193332106f1bb10706d64.tar.gz
Enable ccache support on VPS
Change-Id: I469907d0481fd725cc70881217ad9ca58a389f9b Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--build-scripts/build-android8
1 files changed, 8 insertions, 0 deletions
diff --git a/build-scripts/build-android b/build-scripts/build-android
index 6132cac..ea7e937 100644
--- a/build-scripts/build-android
+++ b/build-scripts/build-android
@@ -163,6 +163,14 @@ else
MAKE=make
fi
+ if ! is_on_ec2; then
+ export USE_CCACHE=1
+ export CCACHE_DIR=$PWD/.ccache
+ if [ ! -e ".ccache" ]; then
+ ./prebuilts/misc/linux-x86/ccache/ccache -M 25G
+ fi
+ fi
+
trap - ERR
export TIMEFORMAT="TIME: Compilation: %lR"
time $MAKE $MAKE_OPTS -j$MAKE_JOBS $MAKE_TARGETS $SHOWCOMMANDS WITH_HOST_DALVIK="$WITH_HOST_DALVIK" USE_CLANG_PLATFORM_BUILD="$USE_CLANG_PLATFORM_BUILD"