libfabric: add debug variant (#24018)

This commit is contained in:
Michael Kuhn 2021-05-31 09:50:32 +02:00 committed by GitHub
parent bd6145589d
commit c4e4d3587b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ def autoreconf(self, spec, prefix):
def configure_args(self):
args = []
args.extend(self.enable_or_disable('debug'))
if '+kdreg' in self.spec:
args.append('--with-kdreg=yes')
else: