Skip to content

Commit 531d883

Browse files
committed
Test with -Zmiri-provenance-gc=1 on Linux
1 parent 6fc83b6 commit 531d883

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ cat /tmp/toolstate/toolstates.json
2525
python3 "$X_PY" test --stage 2 check-tools
2626
python3 "$X_PY" test --stage 2 src/tools/clippy
2727
python3 "$X_PY" test --stage 2 src/tools/rustfmt
28+
29+
if [[ "$HOST_TARGET" == "x86_64-unknown-linux-gnu" ]]; then
30+
# Set the GC interval to 1 on Linux (run the GC every basic block).
31+
# This makes it much more likely we will see GC bugs (the default is every 10000 blocks).
32+
export MIRIFLAGS=-Zmiri-provenance-gc=1
33+
fi
2834
python3 "$X_PY" test --stage 2 src/tools/miri
2935
# We natively run this script on x86_64-unknown-linux-gnu and x86_64-pc-windows-msvc.
3036
# Also cover some other targets via cross-testing, in particular all tier 1 targets.

0 commit comments

Comments
 (0)