Skip to content

Commit

Permalink
Fix INCLUDE ignoring -MG
Browse files Browse the repository at this point in the history
  • Loading branch information
ISSOtm committed Aug 18, 2020
1 parent 1facbd2 commit b946711
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/asm/fstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ void fstk_RunInclude(char const *path)

if (!fstk_FindFile(path, &fullPath, &size)) {
free(fullPath);
yyerror("Unable to open included file '%s': %s", path, strerror(errno));
if (oGeneratedMissingIncludes)
oFailedOnMissingInclude = true;
else
yyerror("Unable to open included file '%s': %s", path, strerror(errno));
return;
}
dbgPrint("Full path: \"%s\"\n", fullPath);
Expand Down

0 comments on commit b946711

Please sign in to comment.