From 8cd160db858ed50e112ee9cf063507a7854f08dc Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin Date: Mon, 18 Mar 2024 09:42:43 +0100 Subject: [PATCH] zlib-ng: add variant new_strategies (#43219) --- var/spack/repos/builtin/packages/zlib-ng/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/zlib-ng/package.py b/var/spack/repos/builtin/packages/zlib-ng/package.py index dd68c53727..26cdcb7c28 100644 --- a/var/spack/repos/builtin/packages/zlib-ng/package.py +++ b/var/spack/repos/builtin/packages/zlib-ng/package.py @@ -36,6 +36,7 @@ class ZlibNg(AutotoolsPackage, CMakePackage): variant("compat", default=True, description="Enable compatibility API") variant("opt", default=True, description="Enable optimizations") + variant("new_strategies", default=True, description="Enable new deflate strategies") provides("zlib-api", when="+compat") @@ -67,6 +68,8 @@ def configure_args(self): args.append("--zlib-compat") if self.spec.satisfies("~opt"): args.append("--without-optimizations") + if self.spec.satisfies("~new_strategies"): + args.append("--without-new-strategies") return args @@ -75,4 +78,5 @@ def cmake_args(self): return [ self.define_from_variant("ZLIB_COMPAT", "compat"), self.define_from_variant("WITH_OPTIM", "opt"), + self.define_from_variant("WITH_NEW_STRATEGIES", "new_strategies"), ]