hypre: add debug variant (#9222)

This commit is contained in:
Geoffrey Oxberry 2018-09-14 15:53:06 -07:00 committed by Todd Gamblin
parent 62208afdb9
commit a76aa36481

View File

@ -55,6 +55,8 @@ class Hypre(Package):
variant('int64', default=False,
description="Use 64bit integers")
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('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-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
# cd into it.
with working_dir("src"):