hypre: add debug variant (#9222)
This commit is contained in:

committed by
Todd Gamblin

parent
62208afdb9
commit
a76aa36481
@@ -55,6 +55,8 @@ class Hypre(Package):
|
|||||||
variant('int64', default=False,
|
variant('int64', default=False,
|
||||||
description="Use 64bit integers")
|
description="Use 64bit integers")
|
||||||
variant('mpi', default=True, description='Enable MPI support')
|
variant('mpi', default=True, description='Enable MPI support')
|
||||||
|
variant('debug', default=False,
|
||||||
|
description='Build debug instead of optimized version')
|
||||||
|
|
||||||
# Patch to add ppc64le in config.guess
|
# Patch to add ppc64le in config.guess
|
||||||
patch('ibm-ppc64le.patch', when='@:2.11.1')
|
patch('ibm-ppc64le.patch', when='@:2.11.1')
|
||||||
@@ -104,6 +106,11 @@ def install(self, spec, prefix):
|
|||||||
configure_args.append("--without-mli")
|
configure_args.append("--without-mli")
|
||||||
configure_args.append("--without-fei")
|
configure_args.append("--without-fei")
|
||||||
|
|
||||||
|
if '+debug' in self.spec:
|
||||||
|
configure_args.append("--enable-debug")
|
||||||
|
else:
|
||||||
|
configure_args.append("--disable-debug")
|
||||||
|
|
||||||
# Hypre's source is staged under ./src so we'll have to manually
|
# Hypre's source is staged under ./src so we'll have to manually
|
||||||
# cd into it.
|
# cd into it.
|
||||||
with working_dir("src"):
|
with working_dir("src"):
|
||||||
|
Reference in New Issue
Block a user