Visible to Intel only — GUID: GUID-A9831327-FFAD-4573-BFCC-22EF81EB9DDA
Visible to Intel only — GUID: GUID-A9831327-FFAD-4573-BFCC-22EF81EB9DDA
Use Configuration Files
You can decrease the time you spend entering command-line options by using the configuration file to automate command-line entries. Configuration files are automatically processed every time you run the Intel® Fortran Compiler. You can insert any valid command-line options into the configuration file. The compiler processes options in the configuration file in the order in which they appear, followed by the specified command-line options when the compiler is invoked.
Options in the configuration file are executed every time you run the compiler. If you have varying option requirements for different projects, use Using Response Files.
Sample Configuration Files
The default configuration file ifort.cfg is located in the same directory as the compiler executable file. If you want to use a different configuration file than the default, you can use the IFORTCFG environment variable to specify the location of another configuration file.
Anytime you instruct the compiler to use a different configuration file, the default configuration file(s) are ignored.
The following examples illustrate basic configuration files.
Linux
## Sample ifort.cfg file
## Define preprocessor macro MY_PROJECT.
-DMY_PROJECT
## Set extended-length source lines.
-extend_source
## Set maximum floating-point significand precision.
-pc80
Windows
## Sample ifort.cfg file
## Define preprocessor macro MY_PROJECT
/DMY_PROJECT
## Set extended-length source lines.
/extend_source
## Additional directories to be searched for include
## files, before the default.
/Ic:\project\include
## Use the static, multithreaded runtime library.
/MT
In the Windows example , the compiler reads the configuration file and invokes the I option every time you run the compiler, along with any options specified on the command line.