Add verbose messages for early exit from -MG

Should help debugging Make invocations
This commit is contained in:
ISSOtm
2021-03-14 18:28:05 +01:00
parent a81d383f75
commit aaa4e17454
2 changed files with 10 additions and 2 deletions

View File

@@ -317,10 +317,14 @@ void fstk_RunInclude(char const *path)
if (!fstk_FindFile(path, &fullPath, &size)) {
free(fullPath);
if (oGeneratedMissingIncludes)
if (oGeneratedMissingIncludes) {
if (verbose)
printf("Aborting (-MG) on INCLUDE file '%s' (%s)\n",
path, strerror(errno));
oFailedOnMissingInclude = true;
else
} else {
error("Unable to open included file '%s': %s\n", path, strerror(errno));
}
return;
}
dbgPrint("Full path: \"%s\"\n", fullPath);