COMPOPTIONS: Default Compiler Options

Tools

Compiler

Synonym

HICOMPOPTIONS

Syntax
COMPOPTIONS={<option>} 
Arguments

<option>: Compiler command-line option

Default

None

Description

If this environment variable is set, the Compiler appends its contents to its command line each time a file is compiled. Use this variable to specify global options for every compilation. This frees you from having to specify them for every compilation.

Note: It is not recommended to use this environment variable if the Compiler used is version 5.x, because the Compiler adds the options specified in the COMPOPTIONS variable to the options stored in the project.ini file.
Listing: Setting default values for environment variables (not recommended)
COMPOPTIONS=-W2 -Wpd
See also

Compiler Options