From b91ad6fd96ae25db12035fabfab732ee93bd394a Mon Sep 17 00:00:00 2001 From: Jack May Date: Fri, 14 Jun 2019 19:11:16 -0700 Subject: [PATCH] Clear C dependency files from cache (#4692) --- ci/test-bench.sh | 4 ++++ ci/test-stable.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ci/test-bench.sh b/ci/test-bench.sh index b63b40e793..25d7a857e9 100755 --- a/ci/test-bench.sh +++ b/ci/test-bench.sh @@ -40,6 +40,10 @@ fi BENCH_FILE=bench_output.log BENCH_ARTIFACT=current_bench_results.log +# Clear the C dependency files, if dependeny moves these files are not regenerated +test -d target/debug/bpf && find target/debug/bpf -name '*.d' -delete +test -d target/release/bpf && find target/release/bpf -name '*.d' -delete + # Ensure all dependencies are built _ cargo +$rust_nightly build --all --release diff --git a/ci/test-stable.sh b/ci/test-stable.sh index f242cdc3dd..0ccf6e27e3 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -19,6 +19,10 @@ source scripts/ulimit-n.sh # Clear cached json keypair files rm -rf "$HOME/.config/solana" +# Clear the C dependency files, if dependeny moves these files are not regenerated +test -d target/debug/bpf && find target/debug/bpf -name '*.d' -delete +test -d target/release/bpf && find target/release/bpf -name '*.d' -delete + # Clear the BPF sysroot files, they are not automatically rebuilt rm -rf target/xargo # Issue #3105