summaryrefslogtreecommitdiff
path: root/src/bootstrap.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-05-30 19:30:29 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:24:44 +0200
commitd9cb571fe126e7e94a52361d733161aa25f23597 (patch)
treed8d43f18a98ea648bd25cd46921d64d0a96c2802 /src/bootstrap.cc
parentdafd592cf44c184f9d24e2216bbed5c23e4b23c2 (diff)
Add UnitTestLib target type, for unit-test only libraries. And fix unit-test linkage.
Diffstat (limited to 'src/bootstrap.cc')
-rw-r--r--src/bootstrap.cc3
1 files changed, 2 insertions, 1 deletions
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);
}