summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@ovgu.de>2021-05-31 09:50:32 +0200
committerGitHub <noreply@github.com>2021-05-31 09:50:32 +0200
commitc4e4d3587b81d9261314fd20ae3f9534b126c998 (patch)
treebd937738ae6c853c6652d581b2b9e604cb5f78d0
parentbd6145589daa67d88c59c0e567c5e51c740fa3c4 (diff)
downloadspack-c4e4d3587b81d9261314fd20ae3f9534b126c998.tar.gz
spack-c4e4d3587b81d9261314fd20ae3f9534b126c998.tar.bz2
spack-c4e4d3587b81d9261314fd20ae3f9534b126c998.tar.xz
spack-c4e4d3587b81d9261314fd20ae3f9534b126c998.zip
libfabric: add debug variant (#24018)
-rw-r--r--var/spack/repos/builtin/packages/libfabric/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libfabric/package.py b/var/spack/repos/builtin/packages/libfabric/package.py
index d878b380f9..1462d3dd8a 100644
--- a/var/spack/repos/builtin/packages/libfabric/package.py
+++ b/var/spack/repos/builtin/packages/libfabric/package.py
@@ -64,6 +64,9 @@ class Libfabric(AutotoolsPackage):
variant('kdreg', default=False,
description='Enable kdreg on supported Cray platforms')
+ variant('debug', default=False,
+ description='Enable debugging')
+
# For version 1.9.0:
# headers: fix forward-declaration of enum fi_collective_op with C++
patch('https://github.com/ofiwg/libfabric/commit/2e95b0efd85fa8a3d814128e34ec57ffd357460e.patch',
@@ -95,6 +98,8 @@ class Libfabric(AutotoolsPackage):
def configure_args(self):
args = []
+ args.extend(self.enable_or_disable('debug'))
+
if '+kdreg' in self.spec:
args.append('--with-kdreg=yes')
else: