Skip to content

Commit

Permalink
Add mpi variant (#37)
Browse files Browse the repository at this point in the history
* add mpi variant

* Update package.py
  • Loading branch information
TApplencourt authored Aug 29, 2024
1 parent 65fad86 commit ce04302
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/thapi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ce04302

Please sign in to comment.