Skip to content
Snippets Groups Projects
Commit 290125f8 authored by Cyrus Harrison's avatar Cyrus Harrison Committed by Adam J. Stewart
Browse files

openmpi: add c++ exceptions cfg option variant (#8743)

* openmpi: add c++ exceptions cfg option variant

* address review comments
parent a67139f6
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,7 @@ class Openmpi(AutotoolsPackage): ...@@ -207,6 +207,7 @@ class Openmpi(AutotoolsPackage):
description='Enable MPI_THREAD_MULTIPLE support') description='Enable MPI_THREAD_MULTIPLE support')
variant('cuda', default=False, description='Enable CUDA support') variant('cuda', default=False, description='Enable CUDA support')
variant('pmi', default=False, description='Enable PMI support') variant('pmi', default=False, description='Enable PMI support')
variant('cxx_exceptions', default=True, description='Enable C++ Exception support')
# Adding support to build a debug version of OpenMPI that activates # Adding support to build a debug version of OpenMPI that activates
# Memchecker, as described here: # Memchecker, as described here:
# #
...@@ -434,6 +435,10 @@ def configure_args(self): ...@@ -434,6 +435,10 @@ def configure_args(self):
else: else:
config_args.append('--without-cuda') config_args.append('--without-cuda')
if '+cxx_exceptions' in spec:
config_args.append('--enable-cxx-exceptions')
else:
config_args.append('--disable-cxx-exceptions')
return config_args return config_args
@run_after('install') @run_after('install')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment