//printf("Peeking and GetLine...\n");
if((result = f.Peek()) && (result = f.GetLine(line, sizeof(line)-1)))
{
+ char * message = null;
char * inFileIncludedFrom = strstr(line, stringInFileIncludedFrom);
test.copyLenSingleBlankReplTrim(line, ' ', true, testLen);
if(strstr(line, compiler.makeCommand) == line && line[lenMakeCommand] == ':')
GetLastDirectory(moduleName, temp);
if(linking && (!strcmp(temp, "ld") || !strcmp(temp, "ld.exe")))
{
- numErrors++;
- strcpy(moduleName, $"Linker Error");
+ if(strstr(colon, "skipping incompatible"))
+ message = $"Linker Message";
+ else
+ {
+ numErrors++;
+ message = $"Linker Error";
+ }
}
else
{
MakePathRelative(temp, topNode.path, moduleName);
}
if(strstr(line, "error:"))
- numErrors ++;
+ numErrors++;
else
{
// Silence warnings for compiled EC
strncat(moduleName, colon, pointer - colon);
strcat(moduleName, "error: ");
colon = pointer;
- numErrors ++;
+ numErrors++;
}
}
else if((pointer = strstr(line, "No such file")))
strncat(moduleName, colon, pointer - colon);
strcat(moduleName, "error: ");
colon = pointer;
- numErrors ++;
+ numErrors++;
}
else if(compilingEC == 1 || (objDir && objDir == moduleName))
continue;
numWarnings++;
}
}
- if(this == ide.workspace.projects.firstIterator.data)
+ if(message)
+ ide.outputView.buildBox.Logf(" %s: %s\n", message, line);
+ else if(this == ide.workspace.projects.firstIterator.data)
ide.outputView.buildBox.Logf(" %s%s\n", moduleName, colon);
else
{