diff options
author | Satish Balay <balay@mcs.anl.gov> | 2022-10-26 12:33:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 11:33:52 -0600 |
commit | b497581ce792ca6152e9d787ba55ffa488246d77 (patch) | |
tree | 159bf31db562a76a067d1e330ebce8f90c8ac5de /var | |
parent | 117a82117d7c412524108620bfd1704903221ecf (diff) | |
download | spack-b497581ce792ca6152e9d787ba55ffa488246d77.tar.gz spack-b497581ce792ca6152e9d787ba55ffa488246d77.tar.bz2 spack-b497581ce792ca6152e9d787ba55ffa488246d77.tar.xz spack-b497581ce792ca6152e9d787ba55ffa488246d77.zip |
pflotran: fix build errors with gfortran@10: (#33527)
>> 38 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/pflotran/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pflotran/package.py b/var/spack/repos/builtin/packages/pflotran/package.py index 8807ad5e71..6a042497b9 100644 --- a/var/spack/repos/builtin/packages/pflotran/package.py +++ b/var/spack/repos/builtin/packages/pflotran/package.py @@ -38,3 +38,8 @@ class Pflotran(AutotoolsPackage): @property def parallel(self): return self.spec.satisfies("@xsdk-0.4.0:") + + def flag_handler(self, name, flags): + if "%gcc@10:" in self.spec and name == "fflags": + flags.append("-fallow-argument-mismatch") + return flags, None, None |