mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 22:19:18 +02:00
IDE: checking compiler exit code and giving warning if not 0,1 from Boguslaw Brandys
git-svn-id: trunk@10586 -
This commit is contained in:
parent
6a32d1e029
commit
17a650d35b
@ -169,6 +169,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
TheProcess.WaitOnExit;
|
TheProcess.WaitOnExit;
|
||||||
|
if not (TheProcess.ExitStatus in [0,1]) then begin
|
||||||
|
WriteError(Format(listCompilerInternalError,[TheProcess.ExitStatus]));
|
||||||
|
Result:=mrCancel;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
except
|
except
|
||||||
on e: EOutputFilterError do begin
|
on e: EOutputFilterError do begin
|
||||||
|
@ -1899,6 +1899,7 @@ resourcestring
|
|||||||
|
|
||||||
// compiler
|
// compiler
|
||||||
lisCompilerErrorInvalidCompiler = 'Error: invalid compiler: %s';
|
lisCompilerErrorInvalidCompiler = 'Error: invalid compiler: %s';
|
||||||
|
listCompilerInternalError = 'Internal compiler error! (%d)';
|
||||||
lisCompilerHintYouCanSetTheCompilerPath = 'Hint: you can set the compiler '
|
lisCompilerHintYouCanSetTheCompilerPath = 'Hint: you can set the compiler '
|
||||||
+'path in Environment->Environment options->Files->Compiler Path';
|
+'path in Environment->Environment options->Files->Compiler Path';
|
||||||
lisCompilerNOTELoadingOldCodetoolsOptionsFile = 'NOTE: loading old '
|
lisCompilerNOTELoadingOldCodetoolsOptionsFile = 'NOTE: loading old '
|
||||||
|
Loading…
Reference in New Issue
Block a user