diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-11-12 14:44:28 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-25 13:08:56 +0200 |
commit | 07a2fe2f00122b514a5119b724581ea020d2c6ea (patch) | |
tree | fb3577660d7cb61519da2cc70640e84dbbe3ead0 /docs/markdown | |
parent | 8313e8fd54c95459efbc413bb60d460cce10a12b (diff) | |
download | meson-07a2fe2f00122b514a5119b724581ea020d2c6ea.zip meson-07a2fe2f00122b514a5119b724581ea020d2c6ea.tar.gz meson-07a2fe2f00122b514a5119b724581ea020d2c6ea.tar.bz2 |
complete gfortran/intel/intel-cl fortran_std test
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Builtin-options.md | 1 | ||||
-rw-r--r-- | docs/markdown/Configuring-a-build-directory.md | 1 | ||||
-rw-r--r-- | docs/markdown/snippets/fortran_std.md | 14 |
3 files changed, 16 insertions, 0 deletions
diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md index f406067..9eac371 100644 --- a/docs/markdown/Builtin-options.md +++ b/docs/markdown/Builtin-options.md @@ -146,6 +146,7 @@ compiler being used: | cpp_eh | default | none, default, a, s, sc | C++ exception handling type | | cpp_rtti | true | true, false | Whether to enable RTTI (runtime type identification) | | cpp_winlibs | see below | free-form comma-separated list | Standard Windows libs to link against | +| fortran_std | none | [none, legacy, f95, f2003, f2008, f2018] | Fortran language standard to use | The default values of `c_winlibs` and `cpp_winlibs` are in compiler-specific argument forms, but the libraries are: kernel32, user32, gdi32, winspool, diff --git a/docs/markdown/Configuring-a-build-directory.md b/docs/markdown/Configuring-a-build-directory.md index b0fb574..1387a46 100644 --- a/docs/markdown/Configuring-a-build-directory.md +++ b/docs/markdown/Configuring-a-build-directory.md @@ -65,6 +65,7 @@ sample output for a simple project. cpp_debugstl false [true, false] STL debug mode cpp_link_args [] Extra arguments passed to the C++ linker cpp_std c++11 [none, c++98, c++03, c++11, c++14, c++17, c++1z, c++2a, gnu++03, gnu++11, gnu++14, gnu++17, gnu++1z, gnu++2a] C++ language standard to use + fortran_std [] [none, legacy, f95, f2003, f2008, f2018] language standard to use Directories: Option Current Value Description diff --git a/docs/markdown/snippets/fortran_std.md b/docs/markdown/snippets/fortran_std.md new file mode 100644 index 0000000..2170a5e --- /dev/null +++ b/docs/markdown/snippets/fortran_std.md @@ -0,0 +1,14 @@ +## `fortran_std` option + +**new in 0.53.0** +Akin to the `c_std` and `cpp_std` options, the `fortran_std` option sets Fortran compilers to warn or error on non-Fortran standard code. +Only the Gfortran and Intel Fortran compilers have support for this option. +Other Fortran compilers ignore the `fortran_std` option. + +Supported values for `fortran_std` include: + +* `legacy` for non-conforming code--this is especially important for Gfortran, which by default errors on old non-compliant Fortran code +* `f95` for Fortran 95 compliant code. +* `f2003` for Fortran 2003 compliant code. +* `f2008` for Fortran 2008 compliant code. +* `f2018` for Fortran 2018 compliant code.
\ No newline at end of file |