summaryrefslogtreecommitdiff
path: root/src/tasks.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks.cc')
-rw-r--r--src/tasks.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tasks.cc b/src/tasks.cc
index a52b0be..254404e 100644
--- a/src/tasks.cc
+++ b/src/tasks.cc
@@ -91,23 +91,24 @@ std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
case TargetType::StaticLibrary:
tasks.emplace_back(std::make_shared<TaskAR>(config, settings, config.target,
- objects));
+ objects, sourceDir));
break;
case TargetType::DynamicLibrary:
+ // TODO: Use C++20 starts_with
if(targetFile.stem().string().substr(0, 3) != "lib")
{
std::cerr << "Dynamic library target must have 'lib' prefix\n";
exit(1);
}
tasks.emplace_back(std::make_shared<TaskSO>(config, settings, config.target,
- objects));
+ objects, sourceDir));
break;
case TargetType::Executable:
case TargetType::UnitTest:
tasks.emplace_back(std::make_shared<TaskLD>(config, settings, config.target,
- objects));
+ objects, sourceDir));
break;
case TargetType::Object: