Adds appropriate extension to program name
Source position: fpmkunit.pp line 1701
function AddProgramExtension( |
const ExecutableName: string; |
AOS: TOS |
):string; |
ExecutableName |
|
Base executable name to extend |
AOS |
|
Target operating system for extension |
Program name with platform-appropriate extension
AddProgramExtension adds the platform-appropriate file extension to an executable program name. This function ensures proper executable naming conventions for different operating systems.
The function appends extensions such as .exe for Windows or leaves names unchanged for Unix-like systems, ensuring correct executable file naming for the target platform.