diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-04-24 16:35:58 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-04-24 16:36:04 +0200 |
| commit | 964edb9a618528247637c0fed6cf174bd8fe5e50 (patch) | |
| tree | a4987a4e3f498337e248f54dd488619509ed96b9 /build_sysroot/build_sysroot.sh | |
| parent | 8c2bd3ec649f6334872a832980d31603986389a1 (diff) | |
| download | rust-964edb9a618528247637c0fed6cf174bd8fe5e50.tar.gz rust-964edb9a618528247637c0fed6cf174bd8fe5e50.zip | |
Don't remove incremental cache for sysroot building
This more than halves compilation time for the sysroot
Diffstat (limited to 'build_sysroot/build_sysroot.sh')
| -rwxr-xr-x | build_sysroot/build_sysroot.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
