From e0b780363056f9b8c767e70ddde11385b14cdbe9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 1 Dec 2020 19:18:24 +0100 Subject: Enable test coverage in debug builds --- wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 627539c..92c2b8b 100644 --- a/wscript +++ b/wscript @@ -159,6 +159,11 @@ def configure(conf): '-Wno-direct-ivar-access'], }) + if Options.options.debug and not Options.options.no_coverage: + conf.env.append_unique('CFLAGS', ['--coverage']) + conf.env.append_unique('CXXFLAGS', ['--coverage']) + conf.env.append_unique('LINKFLAGS', ['--coverage']) + if conf.env.DOCS: conf.load('python') conf.load('sphinx') -- cgit v1.2.1