compile proj & run, handle compilation failures

This commit is contained in:
Basile Burg 2016-01-30 04:39:49 +01:00
parent 8d75799454
commit 01724a5a9e
1 changed files with 10 additions and 3 deletions

View File

@ -1391,13 +1391,20 @@ end;
procedure TCEMainForm.projCompiled(aProject: ICECommonProject; success: boolean); procedure TCEMainForm.projCompiled(aProject: ICECommonProject; success: boolean);
var var
runArgs: string = ''; runArgs: string = '';
runprev: boolean = true;
begin begin
if fRunProjAfterCompile and assigned(fProjectInterface) then if fRunProjAfterCompile and assigned(fProjectInterface) then
begin begin
if fRunProjAfterCompArg and not InputQuery('Execution arguments', '', runargs) then if not success then
runprev := dlgOkCancel('last build failed, continue and run ?') = mrOK;
if runprev then
begin
if fRunProjAfterCompArg and
not InputQuery('Execution arguments', '', runargs) then
runargs := ''; runargs := '';
fProjectInterface.run(runargs); fProjectInterface.run(runargs);
end; end;
end;
fRunProjAfterCompile := false; fRunProjAfterCompile := false;
fRunProjAfterCompArg := false; fRunProjAfterCompArg := false;
end; end;