From 964edb9a618528247637c0fed6cf174bd8fe5e50 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Wed, 24 Apr 2019 16:35:58 +0200 Subject: [PATCH] Don't remove incremental cache for sysroot building This more than halves compilation time for the sysroot --- build_sysroot/build_sysroot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_sysroot/build_sysroot.sh b/build_sysroot/build_sysroot.sh index 5e1d0904753..57752c402c5 100755 --- a/build_sysroot/build_sysroot.sh +++ b/build_sysroot/build_sysroot.sh @@ -3,7 +3,8 @@ set -e cd $(dirname "$0") # Cleanup for previous run -cargo clean +# v Clean target dir except for build scripts and incremental cache +rm -r target/*/{debug,release}/{build,deps,examples,libsysroot*,native} || true rm Cargo.lock 2>/dev/null || true rm -r sysroot 2>/dev/null || true