Skip to content

Commit c9c4aad

Browse files
committed
Remove binary output when errors are detected in final compilation
1 parent 59a359d commit c9c4aad

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Version 7.0.3
22
- Fixed .fpide search so file names are relative to the .fpide file
33
- Improved listing file tracking of COG pc (still buggy, but better)
44
- Made inline function expansion more robust
5+
- Remove binary output when errors are detected in final compilation
56

67
Version 7.0.2
78
- Avoid a crash if a .fpide file is not found

cmdline.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ int ProcessCommandLine(CmdLineOptions *cmd)
433433
CompileAsmToBinary(binname, asmname);
434434
if (gl_errors == 0) {
435435
DoPropellerPostprocess(binname, cmd->useEeprom ? cmd->eepromSize : 0);
436+
} else {
437+
remove(binname);
436438
}
437439
if (!cmd->quiet) {
438440
printf("Done.\n");

0 commit comments

Comments
 (0)