Skip to content

Commit

Permalink
[openmpi] Add optional debug build variant (spack#45708)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmsachs authored and mvlopri committed Sep 4, 2024
1 parent e1d6bbf commit 9242cda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions var/spack/repos/builtin/packages/openmpi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -1217,6 +1218,8 @@ def configure_args(self):
if spec.satisfies("%[email protected]:"):
config_args.append("CPPFLAGS=-diag-disable=10441")

config_args += self.enable_or_disable("debug")

return config_args

@run_after("install", when="+wrapper-rpath")
Expand Down

0 comments on commit 9242cda

Please sign in to comment.