summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2019-08-14 09:23:52 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-08-13 19:23:52 -0500
commitd752ef38c9f21d6ad3bdf2a9d80729143750c0e8 (patch)
treed3b2ffc1ee7dfbd7cc2967f29798cba49f4f357c /var
parent5116312ca231ba05666055768a351399aed60a3b (diff)
downloadspack-d752ef38c9f21d6ad3bdf2a9d80729143750c0e8.tar.gz
spack-d752ef38c9f21d6ad3bdf2a9d80729143750c0e8.tar.bz2
spack-d752ef38c9f21d6ad3bdf2a9d80729143750c0e8.tar.xz
spack-d752ef38c9f21d6ad3bdf2a9d80729143750c0e8.zip
subread: build on ARM. (#12400)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/subread/package.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/subread/package.py b/var/spack/repos/builtin/packages/subread/package.py
index 25dd2993da..13ba379d64 100644
--- a/var/spack/repos/builtin/packages/subread/package.py
+++ b/var/spack/repos/builtin/packages/subread/package.py
@@ -30,6 +30,20 @@ class Subread(MakefilePackage):
'CC_EXEC = {0}'.format(spack_cc),
'Makefile.Linux'
)
+ if spec.satisfies('target=aarch64'):
+ filter_file('-mtune=core2', '', 'Makefile.Linux')
+ if spec.satisfies('@1.6.2:1.6.4'):
+ filter_file(
+ '-mtune=core2',
+ '',
+ 'longread-one/Makefile'
+ )
+ elif spec.satisfies('@1.6.0'):
+ filter_file(
+ '-mtune=core2',
+ '',
+ 'longread-mapping/Makefile'
+ )
make('-f', 'Makefile.Linux')
elif plat.startswith('darwin'):
make('-f', 'Makefile.MacOS')