diff options
author | Jason Lee <calccrypto@gmail.com> | 2019-01-30 18:16:33 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-01-30 19:16:33 -0600 |
commit | c69838421614601ef25a75780c8ed93ecd51e379 (patch) | |
tree | c0253b5e7036881ae4876bff3a7feeec85684dcc | |
parent | 993745b9190ece42426f70dc8538be402c370cd7 (diff) | |
download | spack-c69838421614601ef25a75780c8ed93ecd51e379.tar.gz spack-c69838421614601ef25a75780c8ed93ecd51e379.tar.bz2 spack-c69838421614601ef25a75780c8ed93ecd51e379.tar.xz spack-c69838421614601ef25a75780c8ed93ecd51e379.zip |
jemalloc: Add variant to prepend public api with "je_" prefix (#10356)
-rw-r--r-- | var/spack/repos/builtin/packages/jemalloc/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/jemalloc/package.py b/var/spack/repos/builtin/packages/jemalloc/package.py index eb5f372142..352b4385c3 100644 --- a/var/spack/repos/builtin/packages/jemalloc/package.py +++ b/var/spack/repos/builtin/packages/jemalloc/package.py @@ -22,6 +22,7 @@ class Jemalloc(Package): variant('stats', default=False, description='Enable heap statistics') variant('prof', default=False, description='Enable heap profiling') + variant('je', default=False, description='Prepend the public API functions with "je_"') def install(self, spec, prefix): configure_args = ['--prefix=%s' % prefix, ] @@ -30,6 +31,8 @@ class Jemalloc(Package): configure_args.append('--enable-stats') if '+prof' in spec: configure_args.append('--enable-prof') + if '+je' in spec: + configure_args.append('--with-jemalloc-prefix=je_') configure(*configure_args) |