mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Avoid errors after missing INCLUDE with -MG (#1627)
This commit is contained in:
@@ -385,6 +385,7 @@ int main(int argc, char *argv[]) {
|
||||
if (yy::parser parser; parser.parse() != 0 && nbErrors == 0)
|
||||
nbErrors = 1;
|
||||
|
||||
if (!failedOnMissingInclude) {
|
||||
sect_CheckUnionClosed();
|
||||
sect_CheckLoadClosed();
|
||||
sect_CheckSizes();
|
||||
@@ -392,6 +393,7 @@ int main(int argc, char *argv[]) {
|
||||
charmap_CheckStack();
|
||||
opt_CheckStack();
|
||||
sect_CheckStack();
|
||||
}
|
||||
|
||||
if (nbErrors != 0)
|
||||
errx("Assembly aborted (%u error%s)!", nbErrors, nbErrors == 1 ? "" : "s");
|
||||
|
||||
10
test/asm/errors-after-missing-include.asm
Normal file
10
test/asm/errors-after-missing-include.asm
Normal file
@@ -0,0 +1,10 @@
|
||||
PUSHC
|
||||
PUSHO
|
||||
PUSHS
|
||||
SECTION "test", WRAM0
|
||||
UNION
|
||||
INCLUDE "does not exist"
|
||||
ENDU
|
||||
POPS
|
||||
POPO
|
||||
POPC
|
||||
1
test/asm/errors-after-missing-include.flags
Normal file
1
test/asm/errors-after-missing-include.flags
Normal file
@@ -0,0 +1 @@
|
||||
-Weverything -M /dev/null -MG
|
||||
Reference in New Issue
Block a user