aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurtis Rader <krader@skepticism.us>2019-11-17 18:01:54 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-19 12:46:27 +0200
commitffdacc4c9c8eb1733afa4b3c9aaa6062ab82ede4 (patch)
tree895a7a260bb7e9408a6a065c066ec865bc7ad8a7
parent1f751dacba5c436a26a21130633d7539250a6dbc (diff)
downloadmeson-ffdacc4c9c8eb1733afa4b3c9aaa6062ab82ede4.zip
meson-ffdacc4c9c8eb1733afa4b3c9aaa6062ab82ede4.tar.gz
meson-ffdacc4c9c8eb1733afa4b3c9aaa6062ab82ede4.tar.bz2
Enable code coverage using LLVM on macOS Catalina
Fixes #6188
-rw-r--r--mesonbuild/linkers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index 84bfceb..6c27d6e 100644
--- a/mesonbuild/linkers.py
+++ b/mesonbuild/linkers.py
@@ -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."""