* Exampleunits are not compiled, so do not trigger a recompile if they are missing

* If a unit is not compiled for the current target, do not trigger a recompile when it is missing

git-svn-id: trunk@18799 -
This commit is contained in:
joost 2011-08-21 16:41:47 +00:00
parent 62f33a24c4
commit 46d8af7c9f

View File

@ -4551,12 +4551,12 @@ begin
if FForceCompile then
Result:=true;
// For now exampleprograms are not compiled at all
if ATarget.TargetType = ttExampleProgram then
// For now examples are not compiled at all
if ATarget.TargetType in [ttExampleUnit, ttExampleProgram] then
Exit;
// Check output file
if not result then
if not result and TargetOK(ATarget) then
begin
if ATarget.TargetType in ProgramTargets then
OD:=APackage.GetBinOutputDir(Defaults.CPU,Defaults.OS)