Sign in Join
FPDoc Onlineexperiment

TBuildEngine.MaybeCompile procedure

Member of TBuildEnginepublicIn unit fpMkUnit

Compiles target if compilation is needed

Declaration

pascal
procedure MaybeCompile(APackage: TPackage; ATarget: TTarget)
procedure MaybeCompile(APackage: TPackage)

Arguments

APackage

Package containing the target

ATarget

Target to potentially compile

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.

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