summaryrefslogtreecommitdiff
path: root/src/task_ar.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-05-29 16:08:31 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:15:42 +0200
commit80db51ae3f7d5fbfb52eee4505f615ea4edba62d (patch)
tree8460f40daf54d253bb48fec3085fc8384313941e /src/task_ar.cc
parentb74bd9e24e1205b7449404fd05172664b211d82c (diff)
Use derived dependency task targets instead of 'raw' depends strings for linkage.
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r--src/task_ar.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc
index 0763c04..086ffa1 100644
--- a/src/task_ar.cc
+++ b/src/task_ar.cc
@@ -81,22 +81,12 @@ bool TaskAR::dirtyInner()
int TaskAR::runInner()
{
- std::string objectlist;
- for(const auto& objectFile : objectFiles)
- {
- if(!objectlist.empty())
- {
- objectlist += " ";
- }
- objectlist += objectFile.string();
- }
-
std::vector<std::string> args;
args.push_back("rcs");
args.push_back(targetFile.string());
- for(const auto& objectFile : objectFiles)
+ for(const auto& task : getDependsTasks())
{
- args.push_back(objectFile.string());
+ args.push_back(task->target());
}
{ // Write flags to file.