aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-04-10 12:35:25 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-04-10 12:35:25 -0700
commit0f8d73848ae906e4603e7dba2a18c93895aa4be0 (patch)
tree04e1ef8f74ae8213ad0d2a7b4e2124b0569bb618 /mesonbuild/compilers/d.py
parentb5e077fce8fe8fd892c76c6c4d474751a680503a (diff)
downloadmeson-0f8d73848ae906e4603e7dba2a18c93895aa4be0.zip
meson-0f8d73848ae906e4603e7dba2a18c93895aa4be0.tar.gz
meson-0f8d73848ae906e4603e7dba2a18c93895aa4be0.tar.bz2
compilers/d: Implement coverage for GDC
Since GDC a GNU compiler, we just need to pass the normal GNU options and coverage is generated. Related: ##5669
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r--mesonbuild/compilers/d.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index a86f254..4e3eacb 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -642,7 +642,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 +662,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]