commit 645c253027539d2d06c48efc23b889da047f590d
parent 79bf8cd0f3811882bfdfbd228567d58a1c00b521
Author: Nicolas Guichard <nicolas.guichard@kdab.com>
Date: Wed, 7 Jan 2026 16:28:18 +0000
Bug 2008110 - Always call grcov with --llvm flag. r=marco
grcov calls GCC's gcov by default to parse gcno files, this tells it
instead that the files were generated by LLVM and that it should parse
them as such.
Without this, Linux code coverage reports were missing all C/C++ files.
Differential Revision: https://phabricator.services.mozilla.com/D277706
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/testing/mozharness/mozharness/mozilla/testing/codecoverage.py b/testing/mozharness/mozharness/mozilla/testing/codecoverage.py
@@ -308,6 +308,7 @@ class CodeCoverageMixin(SingleTestMixin):
# Run grcov on the zipped .gcno and .gcda files.
grcov_command = [
os.path.join(self.grcov_dir, self.grcov_bin),
+ "--llvm",
"-t",
output_format,
"-p",
@@ -324,9 +325,6 @@ class CodeCoverageMixin(SingleTestMixin):
if merge:
grcov_command += [jsvm_output_file]
- if mozinfo.os in {"win", "mac"}:
- grcov_command += ["--llvm"]
-
if filter_covered:
grcov_command += ["--filter", "covered"]