From ce04302d33b5d7be6ec34d0a61e1e97badb165af Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Thu, 29 Aug 2024 11:16:41 -0500 Subject: [PATCH] Add mpi variant (#37) * add mpi variant * Update package.py --- packages/thapi/package.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/thapi/package.py b/packages/thapi/package.py index 17045ed..4ae0e1a 100644 --- a/packages/thapi/package.py +++ b/packages/thapi/package.py @@ -40,12 +40,15 @@ class Thapi(AutotoolsPackage): depends_on('libiberty+pic') depends_on('libffi') + depends_on('mpi', when='+mpi') # We add a Python dependency at buildtime, because `lttng-gen-tp` needs it. # We don't add Python as a runtime dependency of lttng to avoid python propagated as a runtime dependency of thapi depends_on('python', type=('build')) - variant('strict', default=False, description='Enable -Werror during the build') + variant('strict', default=False, description='Enable -Werror during the build') + variant('mpi', default=False, description='Enable MPI support for the Sync Daemon') def configure_args(self): - args = [] + args = [] + args.extend(self.enable_or_disable('mpi')) args.extend(self.enable_or_disable('strict')) return args