Retrieves compiler information at run time as the compiler's name and version, as well as compilation options. It uses the intrinsic functions compiler_options and compiler_version from the module iso_fortran_env.
Features
Another example showing direct usage:
Data Types | |
| interface | compiler |
| Provides base class for storing compiler information. More... | |
Enumerations | |
| enum | |
| Enum defining supported Fortran compilers. More... | |
|
private |
Constructs a compiler type from compiler id and version stringRemarks.
Definition at line 365 of file Compiler.f90.
|
private |
Determines if the current compilation is in debug modeRemarks.
Definition at line 328 of file Compiler.f90.
|
private |
Creates and returns a workflow step that prints compiler informationRemarks.
Definition at line 146 of file Compiler.f90.
|
private |
Returns compiler identity based on compile-time preprocessor macrosRemarks.
Definition at line 283 of file Compiler.f90.
|
private |
Detects current compiler and prints name, vendor, version, options and profileRemarks.
Definition at line 166 of file Compiler.f90.
|
private |
Runs the compiler information step and outputs formatted dataRemarks.
Definition at line 156 of file Compiler.f90.