diff options
author | ketsubouchi <67359246+ketsubouchi@users.noreply.github.com> | 2020-07-30 10:28:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 20:28:31 -0500 |
commit | 8435016a43d345aa22c8d4becf3fa4cc4c3b4464 (patch) | |
tree | 5c6faa42168a79118e27107a3e48d54a700408a7 /var | |
parent | 416a929f7f6e208d6c593e24599c7290b65a66be (diff) | |
download | spack-8435016a43d345aa22c8d4becf3fa4cc4c3b4464.tar.gz spack-8435016a43d345aa22c8d4becf3fa4cc4c3b4464.tar.bz2 spack-8435016a43d345aa22c8d4becf3fa4cc4c3b4464.tar.xz spack-8435016a43d345aa22c8d4becf3fa4cc4c3b4464.zip |
eagle: fix CC=gcc and delete march=native (#17763)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/eagle/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/eagle/package.py b/var/spack/repos/builtin/packages/eagle/package.py index 81e0be6f90..0509f32cd4 100644 --- a/var/spack/repos/builtin/packages/eagle/package.py +++ b/var/spack/repos/builtin/packages/eagle/package.py @@ -33,6 +33,13 @@ class Eagle(MakefilePackage): # 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) |