summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authort-nojiri <68096132+t-nojiri@users.noreply.github.com>2020-09-03 17:06:15 +0900
committerGitHub <noreply@github.com>2020-09-03 10:06:15 +0200
commit3a562c0cecc45a4cee787b12b4376c7670415131 (patch)
treedf13b264853ec027a150943b1b9052b7b23347b9 /var
parent7c0b356e791d1a2d601deec37866c432205eb0f3 (diff)
downloadspack-3a562c0cecc45a4cee787b12b4376c7670415131.tar.gz
spack-3a562c0cecc45a4cee787b12b4376c7670415131.tar.bz2
spack-3a562c0cecc45a4cee787b12b4376c7670415131.tar.xz
spack-3a562c0cecc45a4cee787b12b4376c7670415131.zip
fermi: added patch to support aarch64 (#18479)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fermi/ksw_for_aarch64.patch11
-rw-r--r--var/spack/repos/builtin/packages/fermi/package.py3
2 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fermi/ksw_for_aarch64.patch b/var/spack/repos/builtin/packages/fermi/ksw_for_aarch64.patch
new file mode 100644
index 0000000000..1f4c4c0b6f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/fermi/ksw_for_aarch64.patch
@@ -0,0 +1,11 @@
+--- spack-src/ksw.c.bak 2012-08-23 03:32:38.000000000 +0900
++++ spack-src/ksw.c 2020-09-03 13:42:23.495232913 +0900
+@@ -25,7 +25,7 @@
+
+ #include <stdlib.h>
+ #include <stdint.h>
+-#include <emmintrin.h>
++#include <SSE2NEON.h>
+ #include "ksw.h"
+
+ #ifdef __GNUC__
diff --git a/var/spack/repos/builtin/packages/fermi/package.py b/var/spack/repos/builtin/packages/fermi/package.py
index bf97d8fba1..bdfb1f01f9 100644
--- a/var/spack/repos/builtin/packages/fermi/package.py
+++ b/var/spack/repos/builtin/packages/fermi/package.py
@@ -16,6 +16,9 @@ class Fermi(MakefilePackage):
depends_on('zlib')
depends_on('perl', type='run')
+ depends_on('sse2neon', when='target=aarch64:')
+
+ patch('ksw_for_aarch64.patch', when='target=aarch64:')
def install(self, spec, prefix):
mkdir(prefix.bin)