aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2024-06-15 22:58:00 +0000
committerDylan Baker <dylan@pnwbakers.com>2024-06-16 11:58:37 -0700
commit2058f63b4e2d67cbe835499a43d8415f3c1d940d (patch)
treeeb49a58c5374bfa5e02cf1e96948efebbf3a421e
parent9b8378985dbdc0112d11893dd42b33b7bc8d1e62 (diff)
downloadmeson-2058f63b4e2d67cbe835499a43d8415f3c1d940d.zip
meson-2058f63b4e2d67cbe835499a43d8415f3c1d940d.tar.gz
meson-2058f63b4e2d67cbe835499a43d8415f3c1d940d.tar.bz2
BUG: Use an F77 snippet for sanity testing Fortran
Closes gh-13319
-rw-r--r--mesonbuild/compilers/fortran.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py
index 9b288e9..ad266e9 100644
--- a/mesonbuild/compilers/fortran.py
+++ b/mesonbuild/compilers/fortran.py
@@ -59,8 +59,8 @@ class FortranCompiler(CLikeCompiler, Compiler):
return cargs, largs
def sanity_check(self, work_dir: str, environment: 'Environment') -> None:
- source_name = 'sanitycheckf.f90'
- code = 'program main; print *, "Fortran compilation is working."; end program\n'
+ source_name = 'sanitycheckf.f'
+ code = ' PROGRAM MAIN\n PRINT *, "Fortran compilation is working."\n END\n'
return self._sanity_check_impl(work_dir, environment, source_name, code)
def get_optimization_args(self, optimization_level: str) -> T.List[str]: