Skip to content

Commit 964edb9

Browse files
committed
Don't remove incremental cache for sysroot building
This more than halves compilation time for the sysroot
1 parent 8c2bd3e commit 964edb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_sysroot/build_sysroot.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ set -e
33
cd $(dirname "$0")
44

55
# Cleanup for previous run
6-
cargo clean
6+
# v Clean target dir except for build scripts and incremental cache
7+
rm -r target/*/{debug,release}/{build,deps,examples,libsysroot*,native} || true
78
rm Cargo.lock 2>/dev/null || true
89
rm -r sysroot 2>/dev/null || true
910

0 commit comments

Comments
 (0)