summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrus Harrison <cyrush@llnl.gov>2018-07-18 12:54:12 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2018-07-18 14:54:12 -0500
commit290125f893ddd4edc78b6205a30b35418717f97e (patch)
tree17f597993e116349c4cdf354d3edf7489380408b
parenta67139f6c5ecd3acab4adaa5cdd5b9e387f4c6cb (diff)
downloadspack-290125f893ddd4edc78b6205a30b35418717f97e.tar.gz
spack-290125f893ddd4edc78b6205a30b35418717f97e.tar.bz2
spack-290125f893ddd4edc78b6205a30b35418717f97e.tar.xz
spack-290125f893ddd4edc78b6205a30b35418717f97e.zip
openmpi: add c++ exceptions cfg option variant (#8743)
* openmpi: add c++ exceptions cfg option variant * address review comments
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 68f017c551..e276528f21 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -207,6 +207,7 @@ class Openmpi(AutotoolsPackage):
description='Enable MPI_THREAD_MULTIPLE support')
variant('cuda', default=False, description='Enable CUDA 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
# Memchecker, as described here:
#
@@ -434,6 +435,10 @@ class Openmpi(AutotoolsPackage):
else:
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
@run_after('install')