diff options
author | David Robillard <d@drobilla.net> | 2014-07-28 22:17:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-07-28 22:17:27 +0000 |
commit | bf21fccffd50775217fbe3f417eb0216377f1942 (patch) | |
tree | ad5ec1c24c3c1c668f0aa77d968153a9d00c7390 /wscript | |
parent | 91bd0c769fef6c62aa065f3ef22c3cb7d890c597 (diff) | |
download | lv2-bf21fccffd50775217fbe3f417eb0216377f1942.tar.xz |
Fixes for clang.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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, |