cbflib: fix build with newer gfortran (#38632)

This commit is contained in:
Tamara Dahlgren
2023-07-12 00:15:26 -07:00
committed by GitHub
parent 831bfb43f5
commit ce6b79cd96

View File

@@ -43,6 +43,9 @@ def edit(self, spec, prefix):
mf.filter(r"^C\+\+.+", "C++ = {0}".format(spack_cxx))
mf.filter("gfortran", spack_fc)
mf.filter(r"^INSTALLDIR .+", "INSTALLDIR = {0}".format(prefix))
real_version = Version(self.compiler.get_real_version())
if real_version >= Version("10"):
mf.filter(r"^F90FLAGS[ \t]*=[ \t]*(.+)", "F90FLAGS = \\1 -fallow-invalid-boz")
def build(self, spec, prefix):
pass