aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-01 19:18:24 +0100
committerDavid Robillard <d@drobilla.net>2020-12-01 19:18:24 +0100
commite0b780363056f9b8c767e70ddde11385b14cdbe9 (patch)
tree3536a26a57a375aa00df9a9fd8600fc657a4025c /wscript
parent9cb91cde90fc7e54e611805170058efebe32b5a7 (diff)
downloadpugl-e0b780363056f9b8c767e70ddde11385b14cdbe9.tar.gz
pugl-e0b780363056f9b8c767e70ddde11385b14cdbe9.tar.bz2
pugl-e0b780363056f9b8c767e70ddde11385b14cdbe9.zip
Enable test coverage in debug builds
Diffstat (limited to 'wscript')
-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')