aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2018-03-12 22:19:53 +0100
committerJoel Klinghed <the_jk@spawned.biz>2018-03-12 22:19:53 +0100
commit4e1b229b37dcdf18cff11da377e47b1911a77868 (patch)
treeb96fd51d29ce88adc8391ad231334604079bf678 /mesonbuild/backend/ninjabackend.py
parented8197207ec31f8e084c0646a520df32302f13c5 (diff)
downloadmeson-4e1b229b37dcdf18cff11da377e47b1911a77868.zip
meson-4e1b229b37dcdf18cff11da377e47b1911a77868.tar.gz
meson-4e1b229b37dcdf18cff11da377e47b1911a77868.tar.bz2
fixup! Allow gcovr >= 3.1 to be used to generate html coverage report
Rename gcovr_3_1 to gcovr_new_rootdir
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 17bc86c..9284f8a 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -668,7 +668,7 @@ int dummy;
elem.add_item('COMMAND', command)
elem.add_item('DESC', 'Generating HTML coverage report.')
elem.write(outfile)
- elif gcovr_exe and gcovr_3_1:
+ elif gcovr_exe and gcovr_new_rootdir:
added_rule = True
htmloutdir = os.path.join(self.environment.get_log_dir(), 'coveragereport')
phony_elem = NinjaBuildElement(self.all_outputs, 'meson-coverage-html', 'phony', os.path.join(htmloutdir, 'index.html'))