summaryrefslogtreecommitdiff
path: root/src/task_ar.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-20 17:31:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-20 17:31:54 +0200
commitcb5f269b13429f0e1ffbc41426227983e5ccaeba (patch)
tree14e4bd292e1a16ff3d844e73a466ab051f7345d7 /src/task_ar.cc
parent41ce3a4dcf5a03588b7c350445e73975c6b12ff7 (diff)
Simplify/fix task dependency calculation. And tasks unit-tests.
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r--src/task_ar.cc15
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)
{