]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply Miod's suggestion to define `COVERAGE` for `c` as well 15304/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 14 Mar 2025 10:23:13 +0000 (11:23 +0100)
committerGitHub <noreply@github.com>
Fri, 14 Mar 2025 10:23:13 +0000 (11:23 +0100)
Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
meson/code-coverage/meson.build

index 0a21ef52660a1f0d0fcecef935859ad632a0ccc4..221b3072776b91b9fbf7b8086c2306896f3f2220 100644 (file)
@@ -1,7 +1,7 @@
 coverage = get_option('b_coverage')
 
 if coverage
-  add_project_arguments('-DCOVERAGE', language: 'cpp')
+  add_project_arguments('-DCOVERAGE', language: ['c', 'cpp'])
 
   if get_option('buildtype') != 'debug'
     warning('Coverage is enabled, using `builtype=debug` would produce better reports')