summaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorSébastien Villemot <sebastien@debian.org>2024-10-23 12:53:44 +0200
committerDylan Baker <dylan@pnwbakers.com>2024-10-26 20:00:45 -0700
commit8c5505c28ad801c90af17d639e8bf3de8ca3143f (patch)
tree248154834d06fa48e61994160649ef6cebccf791 /docs/markdown
parentdb82c2d777b05a1df076e39a470ab0cbce31a184 (diff)
downloadmeson-8c5505c28ad801c90af17d639e8bf3de8ca3143f.tar.gz
Reimplement several methods for Fortran compilers
The output_is_64bit, sizeof, cross_sizeof, compute_int and cross_compute_int methods are reimplemented for Fortran compilers. Those inherited from CLikeCompiler do not work since they assume C or C++. Note that those tests rely on Fortran 2008 features (notably the c_sizeof operator). Closes #12757
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/fixed_sizeof_and_find_library_for_fortran.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/fixed_sizeof_and_find_library_for_fortran.md b/docs/markdown/snippets/fixed_sizeof_and_find_library_for_fortran.md
new file mode 100644
index 000000000..6893429e8
--- /dev/null
+++ b/docs/markdown/snippets/fixed_sizeof_and_find_library_for_fortran.md
@@ -0,0 +1,8 @@
+## Fixed `sizeof` and `find_library` methods for Fortran compilers
+
+The implementation of the `.sizeof()` method has been fixed for Fortran
+compilers (it was previously broken since it would try to compile a C code
+snippet). Note that this functionality requires Fortran 2008 support.
+
+Incidentally this also fixes the `.find_library()` method for Fortran compilers
+when the `prefer_static` built-in option is set to true.