openfoam: Set 'FOAM_SIGFPE' when using Fujitsu compiler. (#18601)

This commit is contained in:
Tomoki, Karatsu 2020-09-10 22:01:50 +09:00 committed by GitHub
parent d4535f3115
commit 778e659a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -404,7 +404,10 @@ def setup_minimal_environment(self, env):
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).