blktrace: use Spack compiler wrappers (#17365)

This commit is contained in:
ketsubouchi 2020-07-03 15:39:04 +09:00 committed by GitHub
parent 2cd9e1eb62
commit 986f68f7ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,5 +27,12 @@ class Blktrace(MakefilePackage):
depends_on('libaio')
def edit(self, spec, prefix):
makefiles = ['Makefile', 'btreplay/Makefile',
'btt/Makefile', 'iowatcher/Makefile']
for m in makefiles:
makefile = FileFilter(m)
makefile.filter('CC.*=.*', 'CC = {0}'.format(spack_cc))
def install(self, spec, prefix):
install_tree('.', prefix)