diff options
Diffstat (limited to 'src/rebuild.cc')
-rw-r--r-- | src/rebuild.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rebuild.cc b/src/rebuild.cc index 7c34e77..3e0e78d 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -9,7 +9,6 @@ #include <source_location> #include "configure.h" -#include "settings.h" #include "libctor.h" #include "tasks.h" #include "build.h" @@ -18,7 +17,7 @@ std::array<BuildConfigurationEntry, 1024> configFiles; std::size_t numConfigFiles{0}; -int reg(BuildConfigurations (*cb)(), +int reg(BuildConfigurations (*cb)(const Settings&), const std::source_location location) { // NOTE: std::cout cannot be used here @@ -48,7 +47,7 @@ int reg(const char* location) configFiles[numConfigFiles].file = location; configFiles[numConfigFiles].cb = - [](){ return std::vector<BuildConfiguration>{}; }; + [](const Settings&){ return std::vector<BuildConfiguration>{}; }; ++numConfigFiles; return 0; @@ -97,7 +96,7 @@ int unreg(const char* location) std::array<ExternalConfigurationEntry, 1024> externalConfigFiles; std::size_t numExternalConfigFiles{0}; -int reg(ExternalConfigurations (*cb)(), +int reg(ExternalConfigurations (*cb)(const Settings&), const std::source_location location) { // NOTE: std::cout cannot be used here |