From b12d5aecaa2b7ef2a3f63c62bb5765b0ecee2bd9 Mon Sep 17 00:00:00 2001 From: Levi Baber Date: Mon, 16 Jul 2018 22:23:09 -0500 Subject: r: add memory profiling variant (#8717) * r: add memory profiling variant * r: change memory_profiling to underscores --- var/spack/repos/builtin/packages/r/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') 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') -- cgit v1.2.3-70-g09d2