summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-12-25 10:54:38 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-12-25 10:54:38 +0100
commite4ad914a3da769188c46e19e648ae9a66d76f3a7 (patch)
treecb88accb264d97e997eaaa79add7b578c4dd9fc9
parenta43e4eeb6a8c1b0906f5af0b964a301d2ec0321b (diff)
Derived tasks should not (directly) depend on the config.depends tasks.develop
-rw-r--r--src/task.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/task.cc b/src/task.cc
index 77c745e..5484c23 100644
--- a/src/task.cc
+++ b/src/task.cc
@@ -19,9 +19,12 @@ Task::Task(const ctor::build_configuration& config_, const ctor::settings& setti
int Task::registerDepTasks(const std::vector<std::shared_ptr<Task>>& tasks)
{
auto dependsList = depends();
- for(const auto& dep : config.depends)
+ if(!derived())
{
- dependsList.emplace_back(dep);
+ for(const auto& dep : config.depends)
+ {
+ dependsList.emplace_back(dep);
+ }
}
for(const auto& depStr : dependsList)
{