prank: use Spack compilers and remove x86_64 opts from Makefile (#13877)

This commit is contained in:
t-karatsu 2019-11-25 23:14:18 +09:00 committed by Massimiliano Culpo
parent 3a94c032c7
commit b8c18068c2

View File

@ -21,6 +21,15 @@ class Prank(Package):
def install(self, spec, prefix):
with working_dir('src'):
filter_file('gcc', '{0}'.format(spack_cc),
'Makefile', string=True)
filter_file('g++', '{0}'.format(spack_cxx),
'Makefile', string=True)
if not spec.target.family == 'x86_64':
filter_file('-m64', '', 'Makefile', string=True)
filter_file('-pipe', '', 'Makefile', string=True)
make()
mkdirp(prefix.bin)
install('prank', prefix.bin)