Skip to content

Commit

Permalink
coverage: improve llvm-cov detection
Browse files Browse the repository at this point in the history
Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com>
(cherry picked from commit 6258f0d)
  • Loading branch information
Jannik2099 authored and eli-schwartz committed Jul 26, 2024
1 parent dbc7dee commit 2c9f27b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesonbuild/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ def find_coverage_tools(coredata: coredata.CoreData) -> T.Tuple[T.Optional[str],
gcovr_exe, gcovr_version = detect_gcovr()

llvm_cov_exe = detect_llvm_cov(compute_llvm_suffix(coredata))
# Some platforms may provide versioned clang but only non-versioned llvm utils
if llvm_cov_exe is None:
llvm_cov_exe = detect_llvm_cov('')

lcov_exe, lcov_version, genhtml_exe = detect_lcov_genhtml()

Expand Down

0 comments on commit 2c9f27b

Please sign in to comment.