Skip to content

Commit

Permalink
Invoke llvm-cov show with -show-branches (#308)
Browse files Browse the repository at this point in the history
The Rust compiler will gain support for Branch Coverage in the future, so add the `-show-branches` flag to `llvm-cov` to take advantage of that support.
  • Loading branch information
Swatinem authored Aug 24, 2023
1 parent c087e99 commit 240da8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ impl Format {
&format!("-show-instantiations={}", !cx.args.cov.hide_instantiations),
"-show-line-counts-or-regions",
"-show-expansions",
"-show-branches=count",
&format!("-Xdemangler={}", cx.current_exe.display()),
"-Xdemangler=llvm-cov",
"-Xdemangler=demangle",
Expand Down

0 comments on commit 240da8c

Please sign in to comment.