ocaml: fix building with Fujitsu compilers (#17918)
This commit is contained in:
parent
060731a824
commit
71b7b353d8
1 changed files with 11 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue