From d5a4be9f8d886cbe82c61dba8b7aae8e66b0db67 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Fri, 4 Nov 2022 23:43:50 +0100 Subject: [PATCH] more --- test_crate.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test_crate.sh b/test_crate.sh index a7f8edd..45162cc 100755 --- a/test_crate.sh +++ b/test_crate.sh @@ -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 \ No newline at end of file