From a257c2f4d333969c73d8b27124e658db6430645a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 15 Jan 2023 18:06:45 +0100 Subject: Use custom arflags in task_ar --- src/task_ar.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/task_ar.cc') 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 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)); -- cgit v1.2.3