Skip to content

Commit

Permalink
Merge pull request #403 from AlexanderRichert-NOAA/ferret-gcc10
Browse files Browse the repository at this point in the history
ferret: add support for %gcc@10: (spack#42660)
  • Loading branch information
climbfuji authored Feb 22, 2024
2 parents 3b5a932 + f068921 commit af5e631
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions var/spack/repos/builtin/packages/ferret/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af5e631

Please sign in to comment.