Skip to content

Commit e800540

Browse files
committed
fbc: cmdline -end
- accept the request to trigger a restart - otherwise errors are hidden and compilation continues to produce a bad executable
1 parent 2f31eb5 commit e800540

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ Version 1.20.0
9898
- allow long ar and ld command lines in standalone windows builds (adeyblue)
9999
- gas64: fix casting ulong (with "negative value") to double/single (SARG)
100100
- gas64: fix optimization prevented converting 32bit memory/register (SARG)
101+
- fbc: #cmdline "-end" was not resetting the parser, hiding errors and producing a bad executable
101102

102103

103104
Version 1.10.3

src/compiler/pp.bas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ private sub ppCmdline( )
922922
'' We don't have any clever way to auto-detect when all #cmdline's have been read
923923
'' Check for '#cmdline "-end"' to begin a restart and not wait for end of file
924924
'' The restart request will have been stored in env.restart_request
925+
fbRestartBeginRequest( FB_RESTART_CMDLINE )
925926
fbRestartAcceptRequest( FB_RESTART_CMDLINE )
926927

927928
'' and don't show any more errors until we've restarted

0 commit comments

Comments
 (0)