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

TBuildEngine.ExecuteCommand

Executes a command with arguments and environment variables

Declaration

Source position: fpmkunit.pp line 1422

public procedure TBuildEngine.ExecuteCommand(

  const Cmd: string;

  const Args: TStrings;

  Env: TStrings = Nil;

  IgnoreError: Boolean = False

); virtual;

Arguments

Cmd

  

Command executable to run

Args

  

Command line arguments list

Env

  

Environment variables for command execution

IgnoreError

  

Whether to ignore command execution errors

Description

Executes an external command with the specified arguments and environment variables. The command execution can optionally ignore errors based on the IgnoreError parameter.

This is used by the build system to invoke external tools like compilers, linkers, archive utilities, and other build tools during the compilation and installation process.


Documentation generated on: Dec 15 2025