r: add memory profiling variant (#8717)

* r: add memory profiling variant

* r: change memory_profiling to underscores
This commit is contained in:
Levi Baber 2018-07-16 22:23:09 -05:00 committed by Adam J. Stewart
parent 06418a3dcd
commit b12d5aecaa

View File

@ -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 @@ def configure_args(self):
else:
config_args.append('--without-x')
if '+memory_profiling' in spec:
config_args.append('--enable-memory-profiling')
return config_args
@run_after('install')