aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r--mesonbuild/compilers/d.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index a86f254..a83e221 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -105,6 +105,9 @@ class DmdLikeCompilerMixin:
def get_coverage_args(self):
return ['-cov']
+ def get_coverage_link_args(self):
+ return []
+
def get_preprocess_only_args(self):
return ['-E']
@@ -642,7 +645,7 @@ class GnuDCompiler(GnuCompiler, DCompiler):
'1': default_warn_args,
'2': default_warn_args + ['-Wextra'],
'3': default_warn_args + ['-Wextra', '-Wpedantic']}
- self.base_options = ['b_colorout', 'b_sanitize', 'b_staticpic', 'b_vscrt']
+ self.base_options = ['b_colorout', 'b_sanitize', 'b_staticpic', 'b_vscrt', 'b_coverage']
self._has_color_support = version_compare(self.version, '>=4.9')
# dependencies were implemented before, but broken - support was fixed in GCC 7.1+
@@ -662,9 +665,6 @@ class GnuDCompiler(GnuCompiler, DCompiler):
def get_warn_args(self, level):
return self.warn_args[level]
- def get_coverage_args(self):
- return []
-
def get_buildtype_args(self, buildtype):
return d_gdc_buildtype_args[buildtype]