summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
commite84092a7acee6c4d1493cbdd23ec5676b923f44d (patch)
tree07219309ce96ee6a4a1deba279ca48f82b685d74 /wscript
parentf77283d735d202e5c15d072e195325b1f876e461 (diff)
downloadingen-e84092a7acee6c4d1493cbdd23ec5676b923f44d.tar.gz
ingen-e84092a7acee6c4d1493cbdd23ec5676b923f44d.tar.bz2
ingen-e84092a7acee6c4d1493cbdd23ec5676b923f44d.zip
Don't build libraries twice when testing is enabled
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index f62ba46f..cc96a87f 100644
--- a/wscript
+++ b/wscript
@@ -149,9 +149,9 @@ def configure(conf):
if Options.options.debug_urids:
autowaf.define(conf, 'INGEN_DEBUG_URIDS', 1)
+ conf.env.INGEN_TEST_LINKFLAGS = []
+ conf.env.INGEN_TEST_CXXFLAGS = []
if conf.env.BUILD_TESTS:
- conf.env.INGEN_TEST_LINKFLAGS = []
- conf.env.INGEN_TEST_CXXFLAGS = []
if not conf.env.NO_COVERAGE:
conf.env.INGEN_TEST_CXXFLAGS += ['--coverage']
conf.env.INGEN_TEST_LINKFLAGS += ['--coverage']
@@ -245,7 +245,7 @@ def build(bld):
source = 'tests/%s.cpp' % i,
target = 'tests/%s' % i,
includes = ['.'],
- use = 'libingen_profiled',
+ use = 'libingen',
install_path = '',
cxxflags = bld.env.INGEN_TEST_CXXFLAGS,
linkflags = bld.env.INGEN_TEST_LINKFLAGS)