From c87b3348c8816749cb6b728d52974a6a443f880d Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 7 Mar 2013 02:49:13 -0500 Subject: [PATCH] ide/build parsing: Further improvements to prevent reporting false errors on multi-jobs builds --- ide/src/project/Project.ec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ide/src/project/Project.ec b/ide/src/project/Project.ec index dc183bf..7000603 100644 --- a/ide/src/project/Project.ec +++ b/ide/src/project/Project.ec @@ -1506,11 +1506,13 @@ private: byte * tokens[1]; char * module; bool isPrecomp = false; + bool gotCC = false; if(strstr(test, cc) == test || strstr(test, cxx) == test) { module = strstr(line, " -c "); if(module) module += 4; + gotCC = true; } else if(strstr(test, ecc) == test) { @@ -1519,6 +1521,7 @@ private: //module = line + 3; // Don't show GCC warnings about generated C code because it does not compile clean yet... compilingEC = 3;//2; + gotCC = true; } else if(strstr(test, ecp) == test) { @@ -1527,6 +1530,7 @@ private: if(module) module += 4; isPrecomp = true; compilingEC = 0; + gotCC = true; } loggedALine = true; @@ -1558,7 +1562,10 @@ private: else { ide.outputView.buildBox.Logf("%s\n", line); - numErrors++; + if(strstr(line, "warning:") || strstr(line, "note:")) + numWarnings++; + else if(!gotCC && !strstr(line, "At top level") && !strstr(line, "In file included from")) + numErrors++; } if(compilingEC) compilingEC--; -- 1.8.3.1