summaryrefslogtreecommitdiff
path: root/src/bootstrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap.cc')
-rw-r--r--src/bootstrap.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bootstrap.cc b/src/bootstrap.cc
index d473689..3a73cc6 100644
--- a/src/bootstrap.cc
+++ b/src/bootstrap.cc
@@ -22,8 +22,9 @@
std::filesystem::path configurationFile("configuration.cc");
std::filesystem::path configHeaderFile("config.h");
-const Configuration default_configuration{};
-const Configuration& configuration()
+namespace ctor {
+const ctor::Configuration default_configuration{};
+const ctor::Configuration& configuration()
{
return default_configuration;
}
@@ -50,6 +51,7 @@ const std::string& getConfiguration(const std::string& key,
return defaultValue;
}
+} // namespace ctor::
int main(int argc, char* argv[])
{
@@ -60,9 +62,9 @@ int main(int argc, char* argv[])
return 1;
}
- Settings settings{};
+ ctor::Settings settings{};
- settings.builddir = getConfiguration(cfg::builddir, settings.builddir);
+ settings.builddir = ctor::getConfiguration(cfg::builddir, settings.builddir);
settings.parallel_processes =
std::max(1u, std::thread::hardware_concurrency() * 2 - 1);
settings.verbose = 0;