summaryrefslogtreecommitdiff
path: root/src/task_ar.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 19:57:00 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 20:06:56 +0100
commit6af7742c35ecdf2831908443ca0e04bf23317a96 (patch)
tree9ada42d1d4b6bcb2618c1325f155429d2035808a /src/task_ar.cc
parent648c89e879f739f82ed6dba7df7243e54b98601f (diff)
Rename Configuation struct to configuration and make get/has functions member functions.
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r--src/task_ar.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc
index 890209e..89bbc40 100644
--- a/src/task_ar.cc
+++ b/src/task_ar.cc
@@ -97,14 +97,15 @@ int TaskAR::runInner()
std::cout << "AR => " << targetFile().string() << std::endl;
}
+ const auto& c = ctor::get_configuration();
std::string tool;
switch(outputSystem())
{
case ctor::output_system::host:
- tool = getConfiguration(cfg::host_ar, "/usr/bin/ar");
+ tool = c.get(cfg::host_ar, "/usr/bin/ar");
break;
case ctor::output_system::build:
- tool = getConfiguration(cfg::build_ar, "/usr/bin/ar");
+ tool = c.get(cfg::build_ar, "/usr/bin/ar");
break;
}