summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/scotch/package.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/scotch/package.py b/var/spack/repos/builtin/packages/scotch/package.py
index e90a2c8725..770f2f4858 100644
--- a/var/spack/repos/builtin/packages/scotch/package.py
+++ b/var/spack/repos/builtin/packages/scotch/package.py
@@ -102,12 +102,14 @@ class Scotch(Package):
'-DCOMMON_RANDOM_FIXED_SEED',
'-DSCOTCH_DETERMINISTIC',
'-DSCOTCH_RENAME',
- '-DIDXSIZE64', # SCOTCH_Idx typedef: indices for addressing
]
- # SCOTCH_Num typedef: size of integers in arguments
if '+int64' in self.spec:
+ # SCOTCH_Num typedef: size of integers in arguments
cflags.append('-DINTSIZE64')
+ cflags.append('-DIDXSIZE64') # SCOTCH_Idx typedef: indices for addressing
+ else:
+ cflags.append('-DIDXSIZE32') # SCOTCH_Idx typedef: indices for addressing
if self.spec.satisfies('platform=darwin'):
cflags.extend([