Sign in Join
FPDoc Onlineexperiment

TBuildEngine.NeedsCompile function

Member of TBuildEnginepublicIn unit fpMkUnit

Checks if target needs compilation

Declaration

pascal
function NeedsCompile(APackage: TPackage; ATarget: TTarget): Boolean
function NeedsCompile(APackage: TPackage): Boolean; virtual

Arguments

APackage

Package containing the target

ATarget

Target to check for compilation need

Function result

True if target needs compilation

Description

Determines whether the specified target needs to be compiled by checking timestamps, dependencies, and build requirements.

Returns True if the target's output files are missing, out of date, or if dependencies have changed.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.