summaryrefslogtreecommitdiff
path: root/src/configure.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-03-30 14:23:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2025-03-30 14:38:01 +0200
commit0022a217643dd7119df5dc0fcca41161d3201acc (patch)
tree8917a1f72958c4c595df4e72ca26389f9780b6c6 /src/configure.cc
parent0778d3c45d1aef18d9b2ae6769e372b2a3d83b8e (diff)
Refactor code for registering build_configuration registrations.
Diffstat (limited to 'src/configure.cc')
-rw-r--r--src/configure.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/configure.cc b/src/configure.cc
index 3d73011..11caa92 100644
--- a/src/configure.cc
+++ b/src/configure.cc
@@ -350,9 +350,10 @@ int regenerateCache(ctor::settings& settings,
// Resolv externals
ctor::external_configurations externalConfigs;
- for(std::size_t i = 0; i < numExternalConfigFiles; ++i)
+ const auto& externalConfigFiles = getExternalConfigFileList();
+ for(const auto& externalConfigFile : externalConfigFiles)
{
- auto newExternalConfigs = externalConfigFiles[i].cb(settings);
+ auto newExternalConfigs = externalConfigFile.cb(settings);
externalConfigs.insert(externalConfigs.end(),
newExternalConfigs.begin(),
newExternalConfigs.end());