summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/sz/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sz/package.py b/var/spack/repos/builtin/packages/sz/package.py
index 232141a3d8..ac04f958ff 100644
--- a/var/spack/repos/builtin/packages/sz/package.py
+++ b/var/spack/repos/builtin/packages/sz/package.py
@@ -41,6 +41,7 @@ class Sz(CMakePackage):
variant('random_access', default=False, description="build the random access compression mode")
variant('fortran', default=False, description='Enable fortran compilation')
variant('shared', default=True, description="build shared versions of the libraries")
+ variant('stats', default=False, description="build profiling statistics for compression")
# Part of latest sources don't support -O3 optimization
# with Fujitsu compiler.
@@ -123,4 +124,9 @@ class Sz(CMakePackage):
args.append("-DBUILD_SHARED_LIBS=ON")
else:
args.append("-DBUILD_SHARED_LIBS=OFF")
+
+ if "+stats" in self.spec:
+ args.append("-DBUILD_STATS=ON")
+ else:
+ args.append("-DBUILD_STATS=OFF")
return args