]> git.lizzy.rs Git - rust.git/commitdiff
Don't remove incremental cache for sysroot building
authorbjorn3 <bjorn3@users.noreply.github.com>
Wed, 24 Apr 2019 14:35:58 +0000 (16:35 +0200)
committerbjorn3 <bjorn3@users.noreply.github.com>
Wed, 24 Apr 2019 14:36:04 +0000 (16:36 +0200)
This more than halves compilation time for the sysroot

build_sysroot/build_sysroot.sh

index 5e1d0904753f8ffb70795d083d3d8cfdf802946b..57752c402c547e15112b1899885e703c27b62248 100755 (executable)
@@ -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