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_ar.cc | |
parent | 41ce3a4dcf5a03588b7c350445e73975c6b12ff7 (diff) |
Simplify/fix task dependency calculation. And tasks unit-tests.
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r-- | src/task_ar.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc index 980d8b4..51d609e 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -22,26 +22,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 :: TaskAR::TaskAR(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) { |