diff options
Diffstat (limited to 'src/task_cc.cc')
-rw-r--r-- | src/task_cc.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/task_cc.cc b/src/task_cc.cc index 2b1e648..581ca12 100644 --- a/src/task_cc.cc +++ b/src/task_cc.cc @@ -34,23 +34,23 @@ TaskCC::TaskCC(const BuildConfiguration& config, const Settings& settings, target_type = ctor::target_type::object; source_language = source.language; - if(source_language == Language::Auto) + if(source_language == ctor::language::automatic) { source_language = languageFromExtension(sourceFile); } switch(source_language) { - case Language::C: + case ctor::language::c: base += "_c"; break; - case Language::Cpp: + case ctor::language::cpp: base += "_cc"; break; - case Language::Asm: + case ctor::language::assembler: base += "_asm"; break; - case Language::Auto: + case ctor::language::automatic: assert(0 && "This should never happen"); break; } @@ -171,14 +171,14 @@ int TaskCC::runInner() { switch(sourceLanguage()) { - case Language::C: + case ctor::language::c: std::cout << "CC "; break; - case Language::Cpp: + case ctor::language::cpp: std::cout << "CXX "; break; - case Language::Auto: - case Language::Asm: + case ctor::language::automatic: + case ctor::language::assembler: // Only c/c++ handled by this task type. break; } @@ -260,9 +260,9 @@ std::vector<std::string> TaskCC::flags() const { switch(sourceLanguage()) { - case Language::C: + case ctor::language::c: return config.flags.cflags; - case Language::Cpp: + case ctor::language::cpp: return config.flags.cxxflags; default: std::cerr << "Unknown CC target type\n"; |