diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 17:55:39 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 17:55:39 +0100 |
commit | 10dc0902c22ae931fe51c36ea8fc6d2453819477 (patch) | |
tree | 0b66071313e48e61ad02e58010e3f3dfda8e4b34 /src/task_cc.cc | |
parent | 75d1fa7244b9c5cddae056a281f457dd1e81cfb2 (diff) |
Rename Language::Xyz to language::xyz
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"; |