aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2021-09-13 00:49:30 +0000
committerEli Schwartz <eschwartz93@gmail.com>2021-09-20 01:29:59 -0400
commit32ba349f0a229141590b386759d728f9ca47075a (patch)
tree2f51ba0532c8f321352025f4f370bfd75428eebd /mesonbuild/compilers
parent40ff02268c7e7b3bf76ee4a42d8905acc0d0e415 (diff)
downloadmeson-32ba349f0a229141590b386759d728f9ca47075a.zip
meson-32ba349f0a229141590b386759d728f9ca47075a.tar.gz
meson-32ba349f0a229141590b386759d728f9ca47075a.tar.bz2
compilers: Use standards compliant test
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/fortran.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py
index c890691..639c40f 100644
--- a/mesonbuild/compilers/fortran.py
+++ b/mesonbuild/compilers/fortran.py
@@ -72,7 +72,7 @@ class FortranCompiler(CLikeCompiler, Compiler):
if binary_name.is_file():
binary_name.unlink()
- source_name.write_text('print *, "Fortran compilation is working."; end', encoding='utf-8')
+ source_name.write_text('program main; print *, "Fortran compilation is working."; end program', encoding='utf-8')
extra_flags: T.List[str] = []
extra_flags += environment.coredata.get_external_args(self.for_machine, self.language)