eagle: fix CC=gcc and delete march=native (#17763)

This commit is contained in:
ketsubouchi 2020-07-30 10:28:31 +09:00 committed by GitHub
parent 416a929f7f
commit 8435016a43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,13 @@ def edit(self, spec, prefix):
# add htslib link to ldflags
filter_file('-lcurl', '-lcurl -lhts', 'Makefile', string=True)
# use spack C compiler
filter_file('CC=.*', 'CC={0}'.format(spack_cc), 'Makefile')
# remove march=native %fj
if self.spec.satisfies('%fj'):
filter_file('-march=native', '', 'Makefile', string=True)
def install(self, spec, prefix):
mkdirp(prefix.bin)