Skip to content

Commit

Permalink
Add doctest llvm coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Jan 2, 2021
1 parent 26b7db0 commit bf6e16d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ target/
**/*.rs.bk
*.log
*.profraw
*.profdata
# Generated by IntelliJ IDEs
.idea
3 changes: 3 additions & 0 deletions src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ pub fn rustdoc_flags(config: &Config) -> String {
value.push_str(vtemp.as_ref());
}
}
if supports_llvm_coverage() {
value.push_str("-Z instrument-coverage ");
}
value
}

Expand Down

0 comments on commit bf6e16d

Please sign in to comment.