summaryrefslogtreecommitdiff
path: root/src/task_so.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_so.cc')
-rw-r--r--src/task_so.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/task_so.cc b/src/task_so.cc
index ca7883f..519085a 100644
--- a/src/task_so.cc
+++ b/src/task_so.cc
@@ -21,26 +21,13 @@ std::string readFile(const std::string &fileName)
return std::string(bytes.data(), fileSize);
}
-
-std::vector<std::string> addPrefix(const std::vector<std::string>& lst,
- const Settings& settings)
-{
- std::vector<std::string> out;
- for(const auto& item : lst)
- {
- std::filesystem::path file = settings.builddir;
- file /= item;
- out.push_back(file.string());
- }
- return out;
-}
} // namespace ::
TaskSO::TaskSO(const BuildConfiguration& config,
const Settings& settings,
const std::string& target,
const std::vector<std::string>& objects)
- : Task(config, addPrefix(config.depends, settings))
+ : Task(config)
, config(config)
, settings(settings)
{