summaryrefslogtreecommitdiff
path: root/src/tasks.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-10-10 19:02:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-10-10 19:02:54 +0200
commit87aad8c76eb2371720c9aceef7516ecb0859ecdf (patch)
tree8068578c0cd986837757b1d8f8193b01aac01656 /src/tasks.cc
parent922412f5dc975b423757c1e248eac2813e48acb2 (diff)
Improve initial bootstrap speed.
Diffstat (limited to 'src/tasks.cc')
-rw-r--r--src/tasks.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tasks.cc b/src/tasks.cc
index 254404e..c280fb2 100644
--- a/src/tasks.cc
+++ b/src/tasks.cc
@@ -93,7 +93,7 @@ std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
tasks.emplace_back(std::make_shared<TaskAR>(config, settings, config.target,
objects, sourceDir));
break;
-
+#ifndef BOOTSTRAP
case TargetType::DynamicLibrary:
// TODO: Use C++20 starts_with
if(targetFile.stem().string().substr(0, 3) != "lib")
@@ -113,6 +113,10 @@ std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
case TargetType::Object:
break;
+#else
+ default:
+ break;
+#endif
}
return tasks;