diff --git a/scripts/cov.sh b/scripts/cov.sh index 80fe045ca..bd733703c 100755 --- a/scripts/cov.sh +++ b/scripts/cov.sh @@ -12,7 +12,7 @@ ### Running coverage set -x -cargo test --all --exclude evmjit --no-run || exit $? +RUSTFLAGS="-C link-dead-code" cargo test --all --exclude evmjit --no-run || exit $? KCOV_TARGET="target/cov" KCOV_FLAGS="--verify" EXCLUDE="/usr/lib,/usr/include,$HOME/.cargo,$HOME/.multirust,rocksdb,secp256k1"