IDE: build ide: if building fails, clear flag clean up once

git-svn-id: trunk@37118 -
This commit is contained in:
mattias 2012-05-01 11:15:58 +00:00
parent 44b12851fb
commit 147aa605ec

View File

@ -397,8 +397,12 @@ begin
Tool.CmdLineParams:=Tool.CmdLineParams+CmdLineParams;
// run
Result:=ExternalTools.Run(Tool,Macros,false);
if Result<>mrOk then exit;
// clean only once. If building failed the user must first fix the error
// before a clean build is needed.
ApplyCleanOnce;
if Result<>mrOk then begin
exit;
end;
end;
Result:=mrOk;
finally