summaryrefslogtreecommitdiff
path: root/src/task_ld.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_ld.cc')
-rw-r--r--src/task_ld.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/task_ld.cc b/src/task_ld.cc
index ec68190..4eb64f4 100644
--- a/src/task_ld.cc
+++ b/src/task_ld.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 ::
TaskLD::TaskLD(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)
{