subread: use compiler wrappers when compiling (#8328)

This commit is contained in:
Massimiliano Culpo 2018-06-01 10:30:47 +02:00 committed by GitHub
parent ed64b8dace
commit 16fb10bc7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,11 @@ def build(self, spec, prefix):
plat = sys.platform
with working_dir('src'):
if plat.startswith('linux'):
filter_file(
'CC_EXEC = gcc',
'CC_EXEC = {0}'.format(spack_cc),
'Makefile.Linux'
)
make('-f', 'Makefile.Linux')
elif plat.startswith('darwin'):
make('-f', 'Makefile.MacOS')