summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-15 18:06:45 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-15 18:06:45 +0100
commita257c2f4d333969c73d8b27124e658db6430645a (patch)
tree45d4d0e20c89947bff344d88ffdca16ef8951b71
parentd37076a33296877fee3154db689f2990785aed94 (diff)
Use custom arflags in task_ar
-rw-r--r--src/task_ar.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc
index 426a576..88c78c6 100644
--- a/src/task_ar.cc
+++ b/src/task_ar.cc
@@ -81,6 +81,10 @@ int TaskAR::runInner()
auto toolchain = getToolChain(config.system);
std::vector<std::string> args;
+ for(const auto& flag : config.flags.arflags)
+ {
+ append(args, to_strings(toolchain, flag));
+ }
append(args, ar_option(toolchain, ctor::ar_opt::replace));
append(args, ar_option(toolchain, ctor::ar_opt::add_index));
append(args, ar_option(toolchain, ctor::ar_opt::create));