diff options
author | Tomoki, Karatsu <49965247+t-karatsu@users.noreply.github.com> | 2020-09-10 22:01:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 15:01:50 +0200 |
commit | 778e659a038ce2ad569f39385388eaa709f39816 (patch) | |
tree | 2de3b0db9e6a34d304b2e76a5be1e2694097dd29 | |
parent | d4535f3115d801da2172b8548f7c2393be12943b (diff) | |
download | spack-778e659a038ce2ad569f39385388eaa709f39816.tar.gz spack-778e659a038ce2ad569f39385388eaa709f39816.tar.bz2 spack-778e659a038ce2ad569f39385388eaa709f39816.tar.xz spack-778e659a038ce2ad569f39385388eaa709f39816.zip |
openfoam: Set 'FOAM_SIGFPE' when using Fujitsu compiler. (#18601)
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openfoam/package.py b/var/spack/repos/builtin/packages/openfoam/package.py index a1a7a32a10..88a7ca6562 100644 --- a/var/spack/repos/builtin/packages/openfoam/package.py +++ b/var/spack/repos/builtin/packages/openfoam/package.py @@ -404,7 +404,10 @@ class Openfoam(Package): def setup_build_environment(self, env): """Sets the build environment (prior to unpacking the sources). """ - pass + # Avoid the exception that occurs at runtime + # when building with the Fujitsu compiler. + if self.spec.satisfies('%fj'): + env.set('FOAM_SIGFPE', 'false') def setup_run_environment(self, env): """Sets the run environment (post-installation). |