wtdbg2: enable build for aarch64 (#21390)

Use sse2neon to maintain the same API calls for aarch64
This commit is contained in:
Tomoyasu Nojiri 2021-01-29 17:37:00 +09:00 committed by GitHub
parent b18479a2bd
commit bc639fe60b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,23 @@
--- spack-src/ksw.c.bak 2019-01-21 10:35:00.000000000 +0900
+++ spack-src/ksw.c 2021-01-29 16:24:06.281952856 +0900
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <stdint.h>
-#include <emmintrin.h>
+#include <sse2neon.h>
#include "ksw.h"
#ifdef USE_MALLOC_WRAPPERS
--- spack-src/poacns.h.bak 2019-01-21 10:35:00.000000000 +0900
+++ spack-src/poacns.h 2021-01-29 16:23:27.631956791 +0900
@@ -25,8 +25,7 @@
#include "chararray.h"
#include "list.h"
#include "hashset.h"
-#include <emmintrin.h>
-#include <tmmintrin.h>
+#include <sse2neon.h>
#if __BYTE_ORDER == 1234
//#pragma message(" ** " __FILE__ " has been tested in LITTLE_ENDIAN **\n")

View file

@ -15,6 +15,14 @@ class Wtdbg2(MakefilePackage):
version('2.3', sha256='fb61d38a4c60a39b3b194e63b855141c05ddcbe71cf244ae613766a9b0a56621')
depends_on('zlib')
depends_on('sse2neon', when='target=aarch64:')
patch('for_aarch64.patch', when='target=aarch64:')
def edit(self, spec, prefix):
if spec.target.family == 'aarch64':
makefile = FileFilter('Makefile')
makefile.filter('-mpopcnt -msse4.2', '')
def install(self, spec, prefix):
make('install', 'BIN=%s' % prefix.bin)