summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2020-08-05 02:27:27 +0900
committerGitHub <noreply@github.com>2020-08-04 12:27:27 -0500
commitd77f388a0d33cb886ff41d4953f31d3107e95e27 (patch)
tree6e935211be9c06aa541c88e7de050de2b5c67e5b
parentcb676eab0f0c0083e98149cc229aa377c9a4b45e (diff)
downloadspack-d77f388a0d33cb886ff41d4953f31d3107e95e27.tar.gz
spack-d77f388a0d33cb886ff41d4953f31d3107e95e27.tar.bz2
spack-d77f388a0d33cb886ff41d4953f31d3107e95e27.tar.xz
spack-d77f388a0d33cb886ff41d4953f31d3107e95e27.zip
yorick: avoid hang to fputest on aarch64. (#17865)
-rw-r--r--var/spack/repos/builtin/packages/yorick/package.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/yorick/package.py b/var/spack/repos/builtin/packages/yorick/package.py
index 35d6e617a6..eb3e2a3698 100644
--- a/var/spack/repos/builtin/packages/yorick/package.py
+++ b/var/spack/repos/builtin/packages/yorick/package.py
@@ -4,7 +4,6 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
-import os
class Yorick(Package):
@@ -35,9 +34,12 @@ class Yorick(Package):
url = "https://github.com/dhmunro/yorick/archive/y_{0}.tar.gz"
return url.format(version.underscored)
- def install(self, spec, prefix):
- os.environ['FORTRAN_LINKAGE'] = '-Df_linkage'
+ def setup_build_environment(self, env):
+ env.set('FORTRAN_LINKAGE', '-Df_linkage')
+ if self.spec.satisfies('arch=aarch64:'):
+ env.set('FPU_IGNORE', '1')
+ def install(self, spec, prefix):
make("config")
filter_file(r'^CC.+',