[openmpi] Add optional debug build variant (#45708)

This commit is contained in:
Stephen Sachs 2024-09-01 18:02:04 +02:00 committed by GitHub
parent 395491815a
commit 9a58a6da0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -569,6 +569,7 @@ class Openmpi(AutotoolsPackage, CudaPackage):
variant("internal-pmix", default=False, description="Use internal pmix")
variant("internal-libevent", default=False, description="Use internal libevent")
variant("openshmem", default=False, description="Enable building OpenSHMEM")
variant("debug", default=False, description="Make debug build", when="build_system=autotools")
provides("mpi")
provides("mpi@:2.2", when="@1.6.5")
@ -1217,6 +1218,8 @@ def configure_args(self):
if spec.satisfies("%intel@2021.7.0:"):
config_args.append("CPPFLAGS=-diag-disable=10441")
config_args += self.enable_or_disable("debug")
return config_args
@run_after("install", when="+wrapper-rpath")