summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-07-24 16:05:44 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-07-24 16:05:44 +0200
commit809000494b2e0c34dc6ecae228c046c5eba2a820 (patch)
tree83af518b4b141de9171afd30c661d2daaeca9a46 /src
parentae1871ca0ffcac3e8bd337f8d8bb4e7fd6c59295 (diff)
Make short-hand notation for compiler (CC/CXX) in non-verbose modes.
Diffstat (limited to 'src')
-rw-r--r--src/task_cc.cc15
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";
}