mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 14:09:12 +02:00
* 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:
parent
62f33a24c4
commit
46d8af7c9f
@ -4551,12 +4551,12 @@ begin
|
|||||||
if FForceCompile then
|
if FForceCompile then
|
||||||
Result:=true;
|
Result:=true;
|
||||||
|
|
||||||
// For now exampleprograms are not compiled at all
|
// For now examples are not compiled at all
|
||||||
if ATarget.TargetType = ttExampleProgram then
|
if ATarget.TargetType in [ttExampleUnit, ttExampleProgram] then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
// Check output file
|
// Check output file
|
||||||
if not result then
|
if not result and TargetOK(ATarget) then
|
||||||
begin
|
begin
|
||||||
if ATarget.TargetType in ProgramTargets then
|
if ATarget.TargetType in ProgramTargets then
|
||||||
OD:=APackage.GetBinOutputDir(Defaults.CPU,Defaults.OS)
|
OD:=APackage.GetBinOutputDir(Defaults.CPU,Defaults.OS)
|
||||||
|
Loading…
Reference in New Issue
Block a user