ferret: add support for gcc@10: (#42660)

This commit is contained in:
Alex Richert 2024-02-19 05:14:11 -08:00 committed by GitHub
parent c2b116175b
commit 23e586fd85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,6 +63,11 @@ def url_for_version(self, version):
else:
return "https://github.com/NOAA-PMEL/Ferret/archive/v{0}.tar.gz".format(version)
def flag_handler(self, name, flags):
if name == "fflags" and self.spec.satisfies("%gcc@10:"):
flags.extend(["-fallow-argument-mismatch", "-fallow-invalid-boz"])
return (flags, None, None)
def patch(self):
spec = self.spec
hdf5_prefix = spec["hdf5"].prefix