yorick: avoid hang to fputest on aarch64. (#17865)

This commit is contained in:
Toyohisa Kameyama 2020-08-05 02:27:27 +09:00 committed by GitHub
parent cb676eab0f
commit d77f388a0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,6 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import * from spack import *
import os
class Yorick(Package): class Yorick(Package):
@ -35,9 +34,12 @@ def url_for_version(self, version):
url = "https://github.com/dhmunro/yorick/archive/y_{0}.tar.gz" url = "https://github.com/dhmunro/yorick/archive/y_{0}.tar.gz"
return url.format(version.underscored) return url.format(version.underscored)
def install(self, spec, prefix): def setup_build_environment(self, env):
os.environ['FORTRAN_LINKAGE'] = '-Df_linkage' env.set('FORTRAN_LINKAGE', '-Df_linkage')
if self.spec.satisfies('arch=aarch64:'):
env.set('FPU_IGNORE', '1')
def install(self, spec, prefix):
make("config") make("config")
filter_file(r'^CC.+', filter_file(r'^CC.+',