Skip to content

TBuildEngine.NeedsCompile

Checks if target needs compilation

Declaration

Source position: fpmkunit.pp line 1458

public 
function NeedsCompile(APackage: TPackage; ATarget: TTarget) : Boolean;

function NeedsCompile(APackage: TPackage) : Boolean;  virtual;

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.