From 842dbbf9340dcf9166b405d113f2e835d7c932e1 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 19 Jun 2024 17:38:36 -0700 Subject: [PATCH] CI: Use `-Z coverage-options=branch` when measuring coverage. --- mk/cargo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/cargo.sh b/mk/cargo.sh index e259171a1b..9b565c0628 100755 --- a/mk/cargo.sh +++ b/mk/cargo.sh @@ -248,7 +248,7 @@ if [ -n "${RING_COVERAGE-}" ]; then declare -x "${runner_var}=mk/runner ${!runner_var-}" rustflags_var=CARGO_TARGET_${target_upper}_RUSTFLAGS - declare -x "${rustflags_var}=${additional_rustflags} -Cinstrument-coverage ${!rustflags_var-}" + declare -x "${rustflags_var}=${additional_rustflags} -Cinstrument-coverage ${!rustflags_var-} -Z coverage-options=branch" fi if [ -n "${use_clang}" ]; then