Enable code coverage using LLVM on macOS Catalina
Fixes
@@ -580,6 +580,9 @@ class AppleDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker):
result.append(a)
return result
+ def get_coverage_args(self) -> typing.List[str]:
+ return ['--coverage']
+
def sanitizer_args(self, value: str) -> typing.List[str]:
if value == 'none':
return []
@@ -633,6 +636,7 @@ class AppleDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker):
return args
+
class GnuDynamicLinker(GnuLikeDynamicLinkerMixin, PosixDynamicLinkerMixin, DynamicLinker):
"""Representation of GNU ld.bfd and ld.gold."""
