summaryrefslogtreecommitdiff
path: root/src/tools.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/tools.cc
parent648c89e879f739f82ed6dba7df7243e54b98601f (diff)
Rename Configuation struct to configuration and make get/has functions member functions.
Diffstat (limited to 'src/tools.cc')
-rw-r--r--src/tools.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools.cc b/src/tools.cc
index e61a749..9e7102e 100644
--- a/src/tools.cc
+++ b/src/tools.cc
@@ -12,14 +12,15 @@ using namespace ctor;
ToolChain getToolChain(ctor::output_system system)
{
+ const auto& c = ctor::get_configuration();
std::string compiler;
switch(system)
{
case ctor::output_system::host:
- compiler = getConfiguration(cfg::host_cxx, "g++");
+ compiler = c.get(cfg::host_cxx, "g++");
break;
case ctor::output_system::build:
- compiler = getConfiguration(cfg::build_cxx, "g++");
+ compiler = c.get(cfg::build_cxx, "g++");
break;
}