Compiler configuration
The output of the compiler can be controlled in many ways. This can be done essentially in two distinct ways:
Using command line options.
Using the configuration file:
fpc.cfg.
The compiler first reads the configuration file. Only then are the command line options checked. This creates the possibility to set some basic options in the configuration file, and at the same time you can still set some specific options when compiling some unit or program. First we list the command line options, and then we explain how to specify the command line options in the configuration file. When reading this, keep in mind that the options are case sensitive.
- Using the command line optionsThe available options for the current version of the compiler are listed by category. Also, see chapter 11 for a listing as generated by the current compiler. G
- Using the configuration fileUsing the configuration file fpc.cfg is an alternative to command line options. When a configuration file is found, it is read, and the lines in it are treated
- Variable substitution in pathsTo avoid having to edit your configuration files too often, the compiler allows you to insert some variables in the paths that you specify for the compiler. The
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
