diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-09-20 17:31:54 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-09-20 17:31:54 +0200 |
commit | cb5f269b13429f0e1ffbc41426227983e5ccaeba (patch) | |
tree | 14e4bd292e1a16ff3d844e73a466ab051f7345d7 /src/task_so.cc | |
parent | 41ce3a4dcf5a03588b7c350445e73975c6b12ff7 (diff) |
Simplify/fix task dependency calculation. And tasks unit-tests.
Diffstat (limited to 'src/task_so.cc')
-rw-r--r-- | src/task_so.cc | 15 |
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) { |