浏览代码

* 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 -

joost 14 年之前
父节点
当前提交
46d8af7c9f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      packages/fpmkunit/src/fpmkunit.pp

+ 3 - 3
packages/fpmkunit/src/fpmkunit.pp

@@ -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)