summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bergen <bergen@lanl.gov>2020-07-22 11:41:20 -0600
committerGitHub <noreply@github.com>2020-07-22 11:41:20 -0600
commit4ca6d1f0f77cc6002792e8343832818dd809aa7f (patch)
treef793de48fc2626f8d3ede767a11e9ef28302cb53
parentb8135bd20525f126a090c1a1dc48c5fa6ad881d5 (diff)
downloadspack-4ca6d1f0f77cc6002792e8343832818dd809aa7f.tar.gz
spack-4ca6d1f0f77cc6002792e8343832818dd809aa7f.tar.bz2
spack-4ca6d1f0f77cc6002792e8343832818dd809aa7f.tar.xz
spack-4ca6d1f0f77cc6002792e8343832818dd809aa7f.zip
Added variant to enable Legion SPY logging. (#17637)
-rw-r--r--var/spack/repos/builtin/packages/legion/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/legion/package.py b/var/spack/repos/builtin/packages/legion/package.py
index cac38dd030..f98e48e187 100644
--- a/var/spack/repos/builtin/packages/legion/package.py
+++ b/var/spack/repos/builtin/packages/legion/package.py
@@ -47,6 +47,8 @@ class Legion(CMakePackage):
description='Build on top of ibv conduit for InfiniBand support')
variant('shared', default=True, description='Build shared libraries')
variant('hdf5', default=True, description='Enable HDF5 support')
+ variant('spy', default=False,
+ description='Enable detailed logging for Legion Spy')
variant('build_type', default='Release',
values=('Debug', 'Release', 'RelWithDebInfo', 'MinSizeRel'),
description='The build type to build', multi=False)
@@ -87,4 +89,7 @@ class Legion(CMakePackage):
else:
options.append('-DLegion_USE_HDF5=OFF')
+ if '+spy' in self.spec:
+ options.append('-DLegion_SPY=ON')
+
return options