summaryrefslogtreecommitdiff
path: root/src/task_ld.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-11-21 11:13:28 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2021-11-21 13:26:29 +0100
commita7869c0bd65faacdd008284df9ab07de7df3d445 (patch)
tree8d83ab0b23cd504ddf5c5eeddf5a322fd81db3ed /src/task_ld.cc
parent28531aed4d1654cdb6f590e92448bc0ba3ab755b (diff)
Bundle flags in struct for easier passing around.
Diffstat (limited to 'src/task_ld.cc')
-rw-r--r--src/task_ld.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/task_ld.cc b/src/task_ld.cc
index 2a3c8c4..82c26a9 100644
--- a/src/task_ld.cc
+++ b/src/task_ld.cc
@@ -139,7 +139,7 @@ int TaskLD::runInner()
}
}
- for(const auto& flag : config.ldflags)
+ for(const auto& flag : config.flags.ldflags)
{
args.push_back(flag);
}
@@ -206,9 +206,9 @@ bool TaskLD::derived() const
std::string TaskLD::flagsString() const
{
std::string flagsStr;
- for(const auto& flag : config.ldflags)
+ for(const auto& flag : config.flags.ldflags)
{
- if(flag != config.ldflags[0])
+ if(flag != config.flags.ldflags[0])
{
flagsStr += " ";
}