Skip to content

TBuildEngine.ExecuteCommand

Executes a command with arguments and environment variables

Declaration

Source position: fpmkunit.pp line 1437

public 
procedure TBuildEngine.ExecuteCommand(const Cmd: string; 
                                     const Args: TStrings; 
                                     Env: TStrings=Nil; 
                                     IgnoreError: Boolean=False)
                                     ;  virtual;

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.