diff --git a/build_sysroot/build_sysroot.sh b/build_sysroot/build_sysroot.sh index 5b3ea291e77..37aa7c1908d 100755 --- a/build_sysroot/build_sysroot.sh +++ b/build_sysroot/build_sysroot.sh @@ -12,9 +12,9 @@ popd >/dev/null # Cleanup for previous run # v Clean target dir except for build scripts and incremental cache rm -r target/*/{debug,release}/{build,deps,examples,libsysroot*,native} || true -rm -r sysroot_src/src/{libcore,libtest}/target/$TARGET_TRIPLE/$sysroot_channel/ || true +rm -r sysroot_src/src/{libcore,libtest}/target/ || true rm Cargo.lock test_target/Cargo.lock 2>/dev/null || true -rm -r sysroot 2>/dev/null || true +rm -r sysroot/ 2>/dev/null || true # Build libs export RUSTFLAGS="$RUSTFLAGS -Z force-unstable-if-unmarked"