From d9cb571fe126e7e94a52361d733161aa25f23597 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 30 May 2022 19:30:29 +0200 Subject: Add UnitTestLib target type, for unit-test only libraries. And fix unit-test linkage. --- src/bootstrap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bootstrap.cc') diff --git a/src/bootstrap.cc b/src/bootstrap.cc index 08f7b1f..64f11fc 100644 --- a/src/bootstrap.cc +++ b/src/bootstrap.cc @@ -66,7 +66,8 @@ int main(int argc, char* argv[]) auto& targets = getTargets(settings); for(const auto& target : targets) { - if(target.config.type != TargetType::UnitTest) + if(target.config.type != TargetType::UnitTest && + target.config.type != TargetType::UnitTestLib) { non_unittest_targets.push_back(target); } -- cgit v1.2.3