From 0f8d73848ae906e4603e7dba2a18c93895aa4be0 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 10 Apr 2020 12:35:25 -0700 Subject: 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 --- mesonbuild/compilers/d.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mesonbuild/compilers') 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] -- cgit v1.1