summaryrefslogtreecommitdiff
path: root/src/task_cc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_cc.cc')
-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";
}