forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openmpi] Add optional debug build variant (spack#45708)
- Loading branch information
1 parent
e1d6bbf
commit 9242cda
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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("%[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") | ||
|