From e84092a7acee6c4d1493cbdd23ec5676b923f44d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jan 2018 00:41:34 +0100 Subject: Don't build libraries twice when testing is enabled --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wscript') 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) -- cgit v1.2.1