summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authort-karatsu <49965247+t-karatsu@users.noreply.github.com>2019-10-30 03:32:36 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-29 13:32:36 -0500
commite29a6c532cee38662901404116bd2398ff31b885 (patch)
treed26f4596ea5b94938a690379b26dd7bf065ba7dd /var
parent944ef2f6906beac587a08f2ef1d822dd6b13dffe (diff)
downloadspack-e29a6c532cee38662901404116bd2398ff31b885.tar.gz
spack-e29a6c532cee38662901404116bd2398ff31b885.tar.bz2
spack-e29a6c532cee38662901404116bd2398ff31b885.tar.xz
spack-e29a6c532cee38662901404116bd2398ff31b885.zip
mumps: Add '-DMAIN_COMP' when using Fujitsu compiler. (#13480)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mumps/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/mumps/package.py b/var/spack/repos/builtin/packages/mumps/package.py
index 48e8cca29e..b44228bcb5 100644
--- a/var/spack/repos/builtin/packages/mumps/package.py
+++ b/var/spack/repos/builtin/packages/mumps/package.py
@@ -119,6 +119,7 @@ class Mumps(Package):
using_pgi = self.compiler.name == "pgi"
using_intel = self.compiler.name == "intel"
using_xl = self.compiler.name in ['xl', 'xl_r']
+ using_fj = self.compiler.name == "fj"
# The llvm compiler suite does not contain a Fortran compiler by
# default. Its possible that a Spack user may have configured
@@ -183,10 +184,11 @@ class Mumps(Package):
# TODO: change the value to the correct one according to the
# compiler possible values are -DAdd_, -DAdd__ and/or -DUPPER
- if using_intel or using_pgi:
- # Intel & PGI Fortran compiler provides the main() function so
- # C examples linked with the Fortran compiler require a
- # hack defined by _DMAIN_COMP (see examples/c_example.c)
+ if using_intel or using_pgi or using_fj:
+ # Intel, PGI, and Fujitsu Fortran compiler provides
+ # the main() function so C examples linked with the Fortran
+ # compiler require a hack defined by _DMAIN_COMP
+ # (see examples/c_example.c)
makefile_conf.append("CDEFS = -DAdd_ -DMAIN_COMP")
else:
if not using_xlf: