steps:allow building on aarch64 (#18966)

This commit is contained in:
t-nojiri 2020-09-25 16:33:03 +09:00 committed by GitHub
parent a7cbd6074e
commit 9cc0bc9ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- spack-src/src/third_party/Random123/features/gccfeatures.h.bak 2020-01-11 00:45:52.000000000 +0900
+++ spack-src/src/third_party/Random123/features/gccfeatures.h 2020-09-25 13:17:53.218231843 +0900
@@ -34,7 +34,7 @@
#define R123_GNUC_VERSION (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__)
-#if !defined(__x86_64__) && !defined(__i386__) && !defined(__powerpc__)
+#if !defined(__x86_64__) && !defined(__i386__) && !defined(__powerpc__) && !defined(__aarch64__)
# error "This code has only been tested on x86 and powerpc platforms."
#include <including_a_nonexistent_file_will_stop_some_compilers_from_continuing_with_a_hopeless_task>
{ /* maybe an unbalanced brace will terminate the compilation */

View File

@ -28,6 +28,8 @@ class Steps(CMakePackage):
depends_on("python") depends_on("python")
depends_on("py-cython") depends_on("py-cython")
patch('for_aarch64.patch', when='target=aarch64:')
def cmake_args(self): def cmake_args(self):
args = [] args = []
spec = self.spec spec = self.spec