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

@@ -761,6 +761,8 @@ void out_BinaryFile(char const *s, int32_t startPos)
if (!f) {
if (oGeneratedMissingIncludes) {
if (verbose)
printf("Aborting (-MG) on INCBIN file '%s' (%s)\n", s, strerror(errno));
oFailedOnMissingInclude = true;
return;
}
@@ -828,6 +830,8 @@ void out_BinaryFileSlice(char const *s, int32_t start_pos, int32_t length)
if (!f) {
free(fullPath);
if (oGeneratedMissingIncludes) {
if (verbose)
printf("Aborting (-MG) on INCBIN file '%s' (%s)\n", s, strerror(errno));
oFailedOnMissingInclude = true;
return;
}