Skip to content

Commit d90ca9e

Browse files
committed
Clean build firecracker in the regression suite (rust-lang#579)
1 parent e9ffdfa commit d90ca9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/rmc-regression.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ check-cbmc-viewer-version.py --major 2 --minor 5
2828
# Check codegen for the standard library
2929
time "$SCRIPT_DIR"/std-lib-regression.sh
3030

31+
# We rarely benefit from re-using build artifacts in the firecracker test,
32+
# and we often end up with incompatible leftover artifacts:
33+
# "error[E0514]: found crate `serde_derive` compiled by an incompatible version of rustc"
34+
# So if we're calling the full regression suite, wipe out old artifacts.
35+
if [ -d "$RMC_DIR/firecracker/build" ]; then
36+
rm -rf "$RMC_DIR/firecracker/build"
37+
fi
38+
3139
# Check codegen of firecracker
3240
time "$SCRIPT_DIR"/codegen-firecracker.sh
3341

0 commit comments

Comments
 (0)