From 9242cda5db75199958a6418e1962563470042b52 Mon Sep 17 00:00:00 2001 From: Stephen Sachs Date: Sun, 1 Sep 2024 18:02:04 +0200 Subject: [PATCH] [openmpi] Add optional debug build variant (#45708) --- var/spack/repos/builtin/packages/openmpi/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 22bc36c360fa01..07c9154c1434d0 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -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")