mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 21:29:54 +02:00
IDE: fixed compil
git-svn-id: trunk@45950 -
This commit is contained in:
parent
e6ff6d9adb
commit
a794bd27bc
@ -4181,19 +4181,20 @@ function TCompilationToolOptions.Execute(const WorkingDir, ToolTitle,
|
||||
var
|
||||
ExtTool: TAbstractExternalTool;
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
|
||||
if SourceEditorManagerIntf<>nil then
|
||||
SourceEditorManagerIntf.ClearErrorLines;
|
||||
|
||||
ExtTool:=CreateExtTool(WorkingDir,ToolTitle,CompileHint);
|
||||
if ExtTool=nil then exit(mrOk);
|
||||
ExtTool.Reference(Self,ClassName);
|
||||
try
|
||||
// run
|
||||
ExtTool.Execute;
|
||||
ExtTool.WaitForExit;
|
||||
if ExtTool.ErrorMessage='' then
|
||||
Result:=mrOK;
|
||||
Result:=mrOk
|
||||
else
|
||||
Result:=mrCancel;
|
||||
finally
|
||||
ExtTool.Release(Self);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user