Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TBuildEngine.NeedsCompile

Checks if target needs compilation

Declaration

Source position: fpmkunit.pp line 1443

public function TBuildEngine.NeedsCompile(

  APackage: TPackage;

  ATarget: TTarget

):Boolean;

function TBuildEngine.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

Arguments

APackage

  

Package containing the target

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.


Documentation generated on: Dec 15 2025