aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-04 17:45:23 +0000
committerDavid Robillard <d@drobilla.net>2015-10-04 17:45:23 +0000
commit5f13dae607dba1d79d42f1c591f4c7f68fdfc0e0 (patch)
tree9ed20d7442f724b40dec8881a1ca30fe59a78b82 /wscript
parent6bacb30a9ae65174d3b38f62ff845706f14305a1 (diff)
downloadserd-5f13dae607dba1d79d42f1c591f4c7f68fdfc0e0.tar.gz
serd-5f13dae607dba1d79d42f1c591f4c7f68fdfc0e0.tar.bz2
serd-5f13dae607dba1d79d42f1c591f4c7f68fdfc0e0.zip
Add option to avoid gcov
git-svn-id: http://svn.drobilla.net/serd/trunk@495 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/wscript b/wscript
index 7c0458a5..75ccf429 100644
--- a/wscript
+++ b/wscript
@@ -27,6 +27,8 @@ def options(opt):
help='Do not build command line utilities')
opt.add_option('--test', action='store_true', dest='build_tests',
help='Build unit tests')
+ opt.add_option('--no-coverage', action='store_true', dest='no_coverage',
+ help='Do not use gcov for code coverage')
opt.add_option('--stack-check', action='store_true', dest='stack_check',
help='Include runtime stack sanity checks')
opt.add_option('--static', action='store_true', dest='static',
@@ -62,10 +64,8 @@ def configure(conf):
if Options.options.largefile:
conf.env.append_unique('DEFINES', ['_FILE_OFFSET_BITS=64'])
- if conf.env.BUILD_TESTS:
- conf.check(lib = 'gcov',
- define_name = 'HAVE_GCOV',
- mandatory = False)
+ if conf.env.BUILD_TESTS and not Options.options.no_coverage:
+ conf.check_cc(lib='gcov', define_name='HAVE_GCOV', mandatory=False)
if not Options.options.no_posix:
conf.check(function_name = 'posix_memalign',