From c4e4d3587b81d9261314fd20ae3f9534b126c998 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Mon, 31 May 2021 09:50:32 +0200 Subject: libfabric: add debug variant (#24018) --- var/spack/repos/builtin/packages/libfabric/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') 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: -- cgit v1.2.3-70-g09d2