COMPILER_OPTIONS (The GNU Fortran Compiler)

### 8.74 `COMPILER_OPTIONS` — Options passed to the compiler ¶

Synopsis:

  `STR = COMPILER_OPTIONS()`

Description:

  `COMPILER_OPTIONS` returns a string with the options used for compiling.

Class:

  Inquiry function of the module `ISO_FORTRAN_ENV`

Arguments:

  None

Return value:

  The return value is a default-kind string with system-dependent length. It contains the compiler flags used to compile the file that called the `COMPILER_OPTIONS` intrinsic.

Example:

         use iso_fortran_env
         print '(4a)', 'This file was compiled by ', &
                       compiler_version(), ' using the options ', &
                       compiler_options()
         end

Standard:

  Fortran 2008

See also:

  `COMPILER_VERSION` — Compiler version string,
  `ISO_FORTRAN_ENV`