compiler_options(3f) - [FORTRAN:INTRINSIC] Options passed to the compiler
Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also
str = compiler_options()
compiler_options returns a string with the options used for compiling.
None.
The return value is a default-kind string with system-dependent length. It contains the compiler flags used to compile the file, which called the compiler_options intrinsic.
Sample program:
program demo_compiler_version use iso_fortran_env implicit none print (4a), & This file was compiled by , & compiler_version(), & using the options , & compiler_options() end program demo_compiler_versionExample results:
This file was compiled by GCC version 5.4.0 using the options -I /usr/include/w32api -I /home/urbanjs/V600/lib/CYGWIN64_GFORTRAN -mtune=generic -march=x86-64 -g -Wunused -Wuninitialized -Wall -std=f2008 -fbounds-check -fbacktrace -finit-real=nan -fno-range-check -frecord-marker=4 -J /home/urbanjs/V600/lib/CYGWIN64_GFORTRAN
[[Fortran 2008]]
Inquiry function of the module [[iso_fortran_env]]
[[compiler_version]], [[iso_fortran_env]]
compiler_options (3) | March 18, 2019 |