ocaml: fix building with Fujitsu compilers (#17918)

This commit is contained in:
ketsubouchi 2020-08-18 18:49:09 +09:00 committed by GitHub
parent 060731a824
commit 71b7b353d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,17 @@ def install(self, spec, prefix):
if self.spec.satisfies('~force-safe-string'): if self.spec.satisfies('~force-safe-string'):
base_args += ['--disable-force-safe-string'] base_args += ['--disable-force-safe-string']
# This patch is aarch64-linux-fj only.
# However, similar patch is needed for other arch/OS/compiler
# to use correct assembler. (See #17918)
if self.spec.satisfies('%fj'):
filter_file(
'${toolpref}clang -c -Wno-trigraphs',
spack_cc + ' -c',
'configure',
string=True
)
configure(*(base_args)) configure(*(base_args))
make('world.opt') make('world.opt')