diff options
author | Rohit Goswami <rog32@hi.is> | 2021-09-13 00:49:30 +0000 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-09-20 01:29:59 -0400 |
commit | 32ba349f0a229141590b386759d728f9ca47075a (patch) | |
tree | 2f51ba0532c8f321352025f4f370bfd75428eebd /mesonbuild/compilers | |
parent | 40ff02268c7e7b3bf76ee4a42d8905acc0d0e415 (diff) | |
download | meson-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.py | 2 |
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) |