aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
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')