diff options
author | ketsubouchi <67359246+ketsubouchi@users.noreply.github.com> | 2020-08-18 18:49:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 11:49:09 +0200 |
commit | 71b7b353d8934286a03c5c9a327e948e091810e8 (patch) | |
tree | a9928f8eac16bdcf8209d06c968b9651bae3dfd3 | |
parent | 060731a8248856717adef3b76c7bdc4cfb007edc (diff) | |
download | spack-71b7b353d8934286a03c5c9a327e948e091810e8.tar.gz spack-71b7b353d8934286a03c5c9a327e948e091810e8.tar.bz2 spack-71b7b353d8934286a03c5c9a327e948e091810e8.tar.xz spack-71b7b353d8934286a03c5c9a327e948e091810e8.zip |
ocaml: fix building with Fujitsu compilers (#17918)
-rw-r--r-- | var/spack/repos/builtin/packages/ocaml/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ocaml/package.py b/var/spack/repos/builtin/packages/ocaml/package.py index 4e642b9f56..66b2dc41e5 100644 --- a/var/spack/repos/builtin/packages/ocaml/package.py +++ b/var/spack/repos/builtin/packages/ocaml/package.py @@ -44,6 +44,17 @@ class Ocaml(Package): if self.spec.satisfies('~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)) make('world.opt') |