mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 09:32:37 +02:00
* Files which should not be compiled on the current target can not trigger
a compile of the package. This also avoids checks on the file-age of unknown source files, which effectively leads to checking the age of directories. git-svn-id: trunk@22348 -
This commit is contained in:
parent
e7cb2e9a28
commit
8a4bd096fc
@ -5229,8 +5229,12 @@ begin
|
|||||||
if ATarget.TargetType in [ttExampleUnit, ttExampleProgram] then
|
if ATarget.TargetType in [ttExampleUnit, ttExampleProgram] then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
|
// Files which should not be compiled on this target can not trigger a compile.
|
||||||
|
if not TargetOK(ATarget) then
|
||||||
|
Exit;
|
||||||
|
|
||||||
// Check output file
|
// Check output file
|
||||||
if not result and TargetOK(ATarget) then
|
if not result 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