diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-07-24 16:05:44 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-07-24 16:05:44 +0200 |
commit | 809000494b2e0c34dc6ecae228c046c5eba2a820 (patch) | |
tree | 83af518b4b141de9171afd30c661d2daaeca9a46 /src/task_cc.cc | |
parent | ae1871ca0ffcac3e8bd337f8d8bb4e7fd6c59295 (diff) |
Make short-hand notation for compiler (CC/CXX) in non-verbose modes.
Diffstat (limited to 'src/task_cc.cc')
-rw-r--r-- | src/task_cc.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/task_cc.cc b/src/task_cc.cc index c2dd5d6..c4343b6 100644 --- a/src/task_cc.cc +++ b/src/task_cc.cc @@ -167,7 +167,20 @@ int TaskCC::runInner() if(settings.verbose == 0) { - std::cout << compiler() << " " << + switch(sourceLanguage()) + { + case Language::C: + std::cout << "CC "; + break; + case Language::Cpp: + std::cout << "CXX "; + break; + case Language::Auto: + case Language::Asm: + // Only c/c++ handled by this task type. + break; + } + std::cout << sourceFile.lexically_normal().string() << " => " << targetFile().lexically_normal().string() << "\n"; } |