ref: aaa4e174541bb34bea38c02cb39839f6ed4e16eb
parent: a81d383f752e3c1a38f79d13bd31486a04261895
author: ISSOtm <eldredhabert0@gmail.com>
date: Sun Mar 14 14:28:05 EDT 2021
Add verbose messages for early exit from -MG Should help debugging Make invocations
--- a/src/asm/fstack.c
+++ b/src/asm/fstack.c
@@ -317,10 +317,14 @@
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);
--- a/src/asm/section.c
+++ b/src/asm/section.c
@@ -761,6 +761,8 @@
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 @@
if (!f) {
free(fullPath);
if (oGeneratedMissingIncludes) {
+ if (verbose)
+ printf("Aborting (-MG) on INCBIN file '%s' (%s)\n", s, strerror(errno));
oFailedOnMissingInclude = true;
return;
}