pcma: fixing compilation issues with gcc10+ (#28101)

This commit is contained in:
snehring 2021-12-21 03:41:44 -06:00 committed by GitHub
parent 0a43dd1019
commit 5005e9a856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,10 @@ class Pcma(MakefilePackage):
def edit(self, spec, prefix):
makefile = FileFilter('makefile')
makefile.filter('gcc', spack_cc)
if spec.satisfies('%gcc@10:'):
# they missed one
filter_file(r'^sint \*seqlen_array;$', 'extern sint *seqlen_array;',
'calctree.c')
def install(self, spec, prefix):
mkdirp(prefix.bin)