COMPOPTIONS: Default Compiler Options

Tools

Compiler

Synonym

HICOMPOPTIONS

Syntax
COMPOPTIONS={<option>} 
Arguments

<option>: Compiler command-line option

Default

None

Description

Set this environment variable to instruct the Compiler to append its contents to the command line each time a file is compiled. Use this environment variable to specify global options that should always be set. This frees you from having to specify them for every compilation.

Note: We do not recommend using this environment variable if the Compiler used is version 5.x, because it adds the specified options 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