From c0eacf8e85003844b95e71b9004fa464d4586a38 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 14 Oct 2021 22:19:26 +0200 Subject: Use dependency system and build system for compiling ctor on config changes. --- src/task.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/task.cc') diff --git a/src/task.cc b/src/task.cc index 1c6c233..8a9eefa 100644 --- a/src/task.cc +++ b/src/task.cc @@ -38,7 +38,12 @@ int Task::registerDepTasks(const std::list>& tasks) std::string Task::name() const { - return config.target; + // If config name is not set, use target instead. + if(config.name.empty()) + { + return config.target; + } + return config.name; } bool Task::dirty() -- cgit v1.2.3