summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Underwood <robertu94@users.noreply.github.com>2020-10-06 01:30:16 -0400
committerGitHub <noreply@github.com>2020-10-05 22:30:16 -0700
commit87ac0ae3e353160ab49c09df022fc6e0e53e6a24 (patch)
tree8be373f8d59ee5e7fca09217c835132da71c21ad
parentbfb9e8f667842792eb62e673dab84a51532f0ce4 (diff)
downloadspack-87ac0ae3e353160ab49c09df022fc6e0e53e6a24.tar.gz
spack-87ac0ae3e353160ab49c09df022fc6e0e53e6a24.tar.bz2
spack-87ac0ae3e353160ab49c09df022fc6e0e53e6a24.tar.xz
spack-87ac0ae3e353160ab49c09df022fc6e0e53e6a24.zip
SZ package: add switch for builtin profiling support (#19127)
-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