This commit is contained in:
nora 2022-11-04 23:43:50 +01:00
parent aaaf765d32
commit d5a4be9f8d
No known key found for this signature in database

View file

@ -9,19 +9,24 @@ echo "Testing $CRATE +$TOOLCHAIN"
cd $CRATE
function build() {
(cd "$CRATE" && RUSTFLAGS='-Zincremental-verify-ich' cargo "+$TOOLCHAIN" build --features=full)
(cd "$CRATE" && cargo "+$TOOLCHAIN" rustc --features=full --verbose -- -Zincremental-verify-ich -Zquery-dep-graph -Zdump-dep-graph)
}
build
for patch in ./patches/* ; do
echo "Running fresh build..."
build
echo "Applying $patch..."
(cd "$CRATE" && git apply "../$patch")
export RUST_DEP_GRAPH="../dep_graph1"
build
(cd "$CRATE" && git checkout HEAD .)
echo "Reverting $patch..."
export RUST_DEP_GRAPH="../dep_graph2"
build
done