aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-07-28 22:17:27 +0000
committerDavid Robillard <d@drobilla.net>2014-07-28 22:17:27 +0000
commitbf21fccffd50775217fbe3f417eb0216377f1942 (patch)
treead5ec1c24c3c1c668f0aa77d968153a9d00c7390 /wscript
parent91bd0c769fef6c62aa065f3ef22c3cb7d890c597 (diff)
downloadlv2-bf21fccffd50775217fbe3f417eb0216377f1942.tar.xz
Fixes for clang.
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/wscript b/wscript
index b978170..2e888aa 100644
--- a/wscript
+++ b/wscript
@@ -328,11 +328,13 @@ def build_ext(bld, path):
# Build test program if applicable
if bld.env.BUILD_TESTS and bld.path.find_node(path + '/%s-test.c' % name):
- test_lib = []
- test_cflags = ['']
+ test_lib = []
+ test_cflags = ['']
+ test_linkflags = ['']
if bld.is_defined('HAVE_GCOV'):
- test_lib += ['gcov']
- test_cflags += ['-fprofile-arcs', '-ftest-coverage']
+ test_lib += ['gcov', 'rt']
+ test_cflags += ['--coverage']
+ test_linkflags += ['--coverage']
# Unit test program
bld(features = 'c cprogram',
@@ -340,7 +342,8 @@ def build_ext(bld, path):
lib = test_lib,
target = path + '/%s-test' % name,
install_path = None,
- cflags = test_cflags)
+ cflags = test_cflags,
+ linkflags = test_linkflags)
# Install bundle
bld.install_files(bundle_dir,