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

TBuildEngine.MaybeCompile

Compiles target if compilation is needed

Declaration

Source position: fpmkunit.pp line 1445

public procedure TBuildEngine.MaybeCompile(

  APackage: TPackage;

  ATarget: TTarget

);

procedure TBuildEngine.MaybeCompile(

  APackage: TPackage

);

Arguments

APackage

  

Package containing the target

ATarget

  

Target to potentially compile

Arguments

APackage

  

Package containing the target

Description

Conditionally compiles the target only if compilation is required based on dependency analysis and timestamp checks.

This method first calls NeedsCompile and only performs compilation if necessary.


Documentation generated on: Dec 15 2025