diff --git a/ide/ideinfoneedbuild.pas b/ide/ideinfoneedbuild.pas index 98f1dcd88f..55b8d58206 100644 --- a/ide/ideinfoneedbuild.pas +++ b/ide/ideinfoneedbuild.pas @@ -302,6 +302,7 @@ begin else if Item.Target is TProject then begin AProject:=TProject(Item.Target); Item.Note:=''; + NeedBuildAll:=false; NeedBuild:=MainBuildBoss.DoCheckIfProjectNeedsCompilation(AProject, NeedBuildAll,Item.Note); if NeedBuild=mrYes then begin @@ -314,6 +315,7 @@ begin else if Item.Target is TLazPackage then begin Pkg:=TLazPackage(Item.Target); Item.Note:=''; + NeedBuildAll:=false; NeedBuild:=PackageGraph.CheckIfPackageNeedsCompilation( Pkg,SkipDesignTimePackages,true,NeedBuildAll,Item.Note); if NeedBuild=mrYes then begin diff --git a/ide/packages/idepackager/packagesystem.pas b/ide/packages/idepackager/packagesystem.pas index c35098b349..eec8eb5c24 100644 --- a/ide/packages/idepackager/packagesystem.pas +++ b/ide/packages/idepackager/packagesystem.pas @@ -3652,7 +3652,7 @@ var begin Result:=mrYes; {$IFDEF VerbosePkgCompile} - debugln('TLazPackageGraph.CheckIfPackageNeedsCompilation A ',APackage.IDAsString); + debugln(['TLazPackageGraph.CheckIfPackageNeedsCompilation A ',APackage.IDAsString,' NeedBuildAllFlag=',NeedBuildAllFlag]); {$ENDIF} ForceBuild:=NeedBuildAllFlag; if ForceBuild then begin