mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 14:50:46 +02:00
* Check if compilation has failed
git-svn-id: trunk@16892 -
This commit is contained in:
parent
527dd56b28
commit
f05ccc13b5
@ -1222,6 +1222,7 @@ var
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
result := -1;
|
||||||
try
|
try
|
||||||
M := TMemoryStream.Create;
|
M := TMemoryStream.Create;
|
||||||
BytesRead := 0;
|
BytesRead := 0;
|
||||||
@ -1242,6 +1243,7 @@ begin
|
|||||||
// read last part
|
// read last part
|
||||||
repeat
|
repeat
|
||||||
until ReadFromStream = 0;
|
until ReadFromStream = 0;
|
||||||
|
result := P.ExitStatus;
|
||||||
finally
|
finally
|
||||||
P.Free;
|
P.Free;
|
||||||
M.Free;
|
M.Free;
|
||||||
|
Loading…
Reference in New Issue
Block a user