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/task.cc | |
parent | 6af7742c35ecdf2831908443ca0e04bf23317a96 (diff) |
Add ctor namespace cfg:: constants and get rid of temporary 'using namespace ctor'
Diffstat (limited to 'src/task.cc')
-rw-r--r-- | src/task.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/task.cc b/src/task.cc index 27e6c44..817ee3a 100644 --- a/src/task.cc +++ b/src/task.cc @@ -6,8 +6,6 @@ #include <unistd.h> #include <iostream> -using namespace ctor; - Task::Task(const ctor::build_configuration& config, const ctor::settings& settings, const std::string& sourceDir) : config(config) @@ -138,17 +136,17 @@ std::string Task::compiler() const switch(outputSystem()) { case ctor::output_system::host: - return c.get(cfg::host_cc, "/usr/bin/gcc"); + return c.get(ctor::cfg::host_cc, "/usr/bin/gcc"); case ctor::output_system::build: - return c.get(cfg::build_cc, "/usr/bin/gcc"); + return c.get(ctor::cfg::build_cc, "/usr/bin/gcc"); } case ctor::language::cpp: switch(outputSystem()) { case ctor::output_system::host: - return c.get(cfg::host_cxx, "/usr/bin/g++"); + return c.get(ctor::cfg::host_cxx, "/usr/bin/g++"); case ctor::output_system::build: - return c.get(cfg::build_cxx, "/usr/bin/g++"); + return c.get(ctor::cfg::build_cxx, "/usr/bin/g++"); } default: std::cerr << "Unknown CC target type\n"; |