Sign in Join
FPDoc Onlineexperiment

TBuildEngine.TargetOK function deprecated

Member of TBuildEnginepublicIn unit fpMkUnit

Checks if target is valid for platform

Declaration

pascal
function TargetOK(ATarget: TTarget; ACPU: TCpu; AOS: TOS; 
 const aSubTarget: string): Boolean
function TargetOK(ATarget: TTarget; 
 const aCompileTarget: TCompileTarget): Boolean

Arguments

ATarget

Target to check

ACPU

Target CPU architecture

AOS

Target operating system

aSubTarget

Subtarget to check

aCompileTarget

Compile target to check

Function result

True if target is valid

Description

Determines whether the specified target is valid for the current platform configuration.

This check considers the target's CPU and OS restrictions to determine if it should be built on the current system.

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