summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLevi Baber <baberlevi@gmail.com>2018-07-16 22:23:09 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2018-07-16 22:23:09 -0500
commitb12d5aecaa2b7ef2a3f63c62bb5765b0ecee2bd9 (patch)
tree1ca6d5008241ab586ea28e4df4b344dadc67b95b /var
parent06418a3dcd5dda0c45151ceec08aa91d8e3fa651 (diff)
downloadspack-b12d5aecaa2b7ef2a3f63c62bb5765b0ecee2bd9.tar.gz
spack-b12d5aecaa2b7ef2a3f63c62bb5765b0ecee2bd9.tar.bz2
spack-b12d5aecaa2b7ef2a3f63c62bb5765b0ecee2bd9.tar.xz
spack-b12d5aecaa2b7ef2a3f63c62bb5765b0ecee2bd9.zip
r: add memory profiling variant (#8717)
* r: add memory profiling variant * r: change memory_profiling to underscores
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/r/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r/package.py b/var/spack/repos/builtin/packages/r/package.py
index b1c9f49eb8..a9b99053ca 100644
--- a/var/spack/repos/builtin/packages/r/package.py
+++ b/var/spack/repos/builtin/packages/r/package.py
@@ -62,6 +62,8 @@ class R(AutotoolsPackage):
description='Links to externally installed BLAS/LAPACK')
variant('X', default=False,
description='Enable X11 support (call configure --with-x)')
+ variant('memory_profiling', default=False,
+ description='Enable memory profiling')
# Virtual dependencies
depends_on('blas', when='+external-lapack')
@@ -128,6 +130,9 @@ class R(AutotoolsPackage):
else:
config_args.append('--without-x')
+ if '+memory_profiling' in spec:
+ config_args.append('--enable-memory-profiling')
+
return config_args
@run_after('install')