gmp: fix make check on catalina (#13201)
This commit is contained in:
parent
08d448bc54
commit
ea4f9ebbde
@ -30,10 +30,15 @@ class Gmp(AutotoolsPackage):
|
|||||||
# shared library support. Regenerating it fixes the issue.
|
# shared library support. Regenerating it fixes the issue.
|
||||||
force_autoreconf = True
|
force_autoreconf = True
|
||||||
|
|
||||||
def configure_args(self):
|
def flag_handler(self, name, flags):
|
||||||
args = ['--enable-cxx']
|
# Work around macOS Catalina / Xcode 11 code generation bug
|
||||||
|
# (test failure t-toom53, due to wrong code in mpn/toom53_mul.o)
|
||||||
|
if self.spec.satisfies('os=catalina') and name == 'cflags':
|
||||||
|
flags.append('-fno-stack-check')
|
||||||
# This flag is necessary for the Intel build to pass `make check`
|
# This flag is necessary for the Intel build to pass `make check`
|
||||||
if self.spec.compiler.name == 'intel':
|
elif self.spec.satisfies('%intel') and name == 'cxxflags':
|
||||||
args.append('CXXFLAGS=-no-ftz')
|
flags.append('-no-ftz')
|
||||||
|
return (flags, None, None)
|
||||||
|
|
||||||
return args
|
def configure_args(self):
|
||||||
|
return ['--enable-cxx']
|
||||||
|
Loading…
Reference in New Issue
Block a user