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 d621cd9..435bef1 100644
--- a/src/tasks.cc
+++ b/src/tasks.cc
@@ -79,7 +79,8 @@ const std::deque<Target>& getTargets(const Settings& settings,
std::set<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
const Settings& settings,
- const std::string& sourceDir)
+ const std::string& sourceDir,
+ bool is_self)
{
std::set<std::shared_ptr<Task>> tasks;
@@ -161,7 +162,7 @@ std::set<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config,
case TargetType::Executable:
case TargetType::UnitTest:
tasks.insert(std::make_shared<TaskLD>(config, settings, config.target,
- objects, sourceDir));
+ objects, sourceDir, is_self));
break;
case TargetType::Object:
@@ -207,7 +208,7 @@ std::set<std::shared_ptr<Task>> getTasks(const Settings& settings,
std::find(std::begin(names), std::end(names), target.config.target) != std::end(names))
{
std::vector<std::string> objects;
- auto t = taskFactory(target.config, settings, target.path);
+ auto t = taskFactory(target.config, settings, target.path, false);
tasks.insert(t.begin(), t.end());
}
}