diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 20:08:10 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 20:08:10 +0100 |
commit | 430801b1307b4c820885f161d0b003011c892d77 (patch) | |
tree | 64ce860849ada5c0aa00989532da6639004fe6aa /src/bootstrap.cc | |
parent | 6af7742c35ecdf2831908443ca0e04bf23317a96 (diff) |
Add ctor namespace cfg:: constants and get rid of temporary 'using namespace ctor'
Diffstat (limited to 'src/bootstrap.cc')
-rw-r--r-- | src/bootstrap.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap.cc b/src/bootstrap.cc index 1fb3807..f091849 100644 --- a/src/bootstrap.cc +++ b/src/bootstrap.cc @@ -35,13 +35,13 @@ bool ctor::configuration::has(const std::string& key) const const std::string& ctor::configuration::get(const std::string& key, const std::string& default_value) const { - if(key == cfg::host_cxx && std::getenv("CXX")) + if(key == ctor::cfg::host_cxx && std::getenv("CXX")) { static std::string s = std::getenv("CXX"); return s; } - if(key == cfg::builddir && std::getenv("BUILDDIR")) + if(key == ctor::cfg::builddir && std::getenv("BUILDDIR")) { static std::string s = std::getenv("BUILDDIR"); return s; @@ -62,7 +62,7 @@ int main(int argc, char* argv[]) ctor::settings settings{}; const auto& c = ctor::get_configuration(); - settings.builddir = c.get(cfg::builddir, settings.builddir); + settings.builddir = c.get(ctor::cfg::builddir, settings.builddir); settings.parallel_processes = std::max(1u, std::thread::hardware_concurrency() * 2 - 1); settings.verbose = 0; |