Add colormake support for cc and c++.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-10-04 19:01:22 +02:00
parent ba5af691f9
commit 4839a97d91
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ int main(int /*argc*/, char* argv[])
{
if ( strstr(line, "make") )
mode = MODE_MAKE;
if ( strstr(line, "gcc") || strstr(line, "g++") )
if ( strstr(line, "cc") || strstr(line, "c++") ||
strstr(line, "gcc") || strstr(line, "g++") )
mode = MODE_GCC;
const char* color = "\e[m";
int next_mode = MODE_NONE;