mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
IDE: only compiling project clean once if state file missing
git-svn-id: trunk@14433 -
This commit is contained in:
parent
0b76672701
commit
d591f6327e
13
ide/main.pp
13
ide/main.pp
@ -8389,7 +8389,14 @@ var
|
||||
StateFileAge: LongInt;
|
||||
AnUnitInfo: TUnitInfo;
|
||||
begin
|
||||
NeedBuildAllFlag:=true;
|
||||
NeedBuildAllFlag:=false;
|
||||
if (AProject.LastCompilerFilename<>CompilerFilename)
|
||||
or (AProject.LastCompilerParams<>CompilerParams)
|
||||
or ((AProject.LastCompilerFileDate>0)
|
||||
and FileExistsCached(CompilerFilename)
|
||||
and (FileAge(CompilerFilename)<>AProject.LastCompilerFileDate))
|
||||
then
|
||||
NeedBuildAllFlag:=true;
|
||||
|
||||
// check state file
|
||||
StateFilename:=AProject.GetStateFilename;
|
||||
@ -8665,6 +8672,10 @@ begin
|
||||
pbfSkipLinking in Flags,
|
||||
pbfSkipAssembler in Flags);
|
||||
if Result<>mrOk then begin
|
||||
// save state, so that next time the project is not compiled clean
|
||||
Project1.LastCompilerFilename:=CompilerFilename;
|
||||
Project1.LastCompilerParams:=CompilerParams;
|
||||
Project1.LastCompilerFileDate:=FileAge(CompilerFilename);
|
||||
DoJumpToCompilerMessage(-1,true);
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user