sdcc: link errors no longer vanish if compile errors occur

This commit is contained in:
Steven Hugg 2023-12-13 13:35:01 -05:00
parent dbe73c4fb2
commit 0ede0e514b
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ export function linkSDLDZ80(step: BuildStep) {
args.push.apply(args, step.args);
//console.log(args);
execMain(step, LDZ80, args);
if (errors.length) {
return { errors: errors };
}
var hexout = FS.readFile("main.ihx", { encoding: 'utf8' });
var noiout = FS.readFile("main.noi", { encoding: 'utf8' });
putWorkFile("main.ihx", hexout);