diff options
Diffstat (limited to 'var')
-rwxr-xr-x | var/spack/repos/builtin/packages/megahit/amd.patch | 20 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/megahit/package.py | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/megahit/amd.patch b/var/spack/repos/builtin/packages/megahit/amd.patch new file mode 100755 index 0000000000..6f99f616b2 --- /dev/null +++ b/var/spack/repos/builtin/packages/megahit/amd.patch @@ -0,0 +1,20 @@ +Common subdirectories: spack-src/cub and spack-src.mod/cub +Common subdirectories: spack-src/example and spack-src.mod/example +Common subdirectories: spack-src/lib_idba and spack-src.mod/lib_idba +diff -u spack-src/Makefile spack-src.mod/Makefile +--- spack-src/Makefile 2018-11-02 10:14:27.000000000 +0900 ++++ spack-src.mod/Makefile 2019-07-09 15:53:34.685959951 +0900 +@@ -48,6 +48,12 @@ + CPU_ARCH_SUFFIX = ppc64 + CPU_ARCH = -mpowerpc64 + endif ++IS_AARCH64 := $(shell echo `$(CXX) -v 2>&1 | grep aarch64 | wc -l`) ++ifneq (0, $(IS_AARCH64)) ++ CPU_ARCH_SUFFIX = aarch64 ++ CPU_ARCH = ++ disablempopcnt=1 ++endif + + #------------------------------------------------------------------------------- + # Includes +Common subdirectories: spack-src/tools and spack-src.mod/tools diff --git a/var/spack/repos/builtin/packages/megahit/package.py b/var/spack/repos/builtin/packages/megahit/package.py index fe20a70786..64f8d01de6 100644 --- a/var/spack/repos/builtin/packages/megahit/package.py +++ b/var/spack/repos/builtin/packages/megahit/package.py @@ -18,6 +18,8 @@ class Megahit(MakefilePackage): depends_on('zlib') + patch('amd.patch', when='target=aarch64') + def install(self, spec, prefix): mkdirp(prefix.bin) install('megahit', prefix.bin) |