From d752ef38c9f21d6ad3bdf2a9d80729143750c0e8 Mon Sep 17 00:00:00 2001 From: Toyohisa Kameyama Date: Wed, 14 Aug 2019 09:23:52 +0900 Subject: subread: build on ARM. (#12400) --- var/spack/repos/builtin/packages/subread/package.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'var') 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') -- cgit v1.2.3-70-g09d2