From d4f05b0362b92c488dbc2b925a3e336cf7bac02b Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Mon, 3 Oct 2022 11:55:18 +0100 Subject: [PATCH] [rocksdb] Added rtti variant (#32918) --- var/spack/repos/builtin/packages/rocksdb/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/rocksdb/package.py b/var/spack/repos/builtin/packages/rocksdb/package.py index 824a38da61..b6046d2806 100644 --- a/var/spack/repos/builtin/packages/rocksdb/package.py +++ b/var/spack/repos/builtin/packages/rocksdb/package.py @@ -34,6 +34,7 @@ class Rocksdb(MakefilePackage): variant("zstd", default=False, description="Enable zstandard compression support") variant("tbb", default=False, description="Enable Intel TBB support") variant("werror", default=False, description="Build with -Werror") + variant("rtti", default=False, description="Build with RTTI") depends_on("bzip2", when="+bz2") depends_on("gflags") @@ -97,6 +98,9 @@ def install(self, spec, prefix): if "~werror" in self.spec: env["DISABLE_WARNING_AS_ERROR"] = "1" + if "+rtti" in self.spec: + env["USE_RTTI"] = "1" + if self.spec.satisfies("@6.13.2:"): env["PREFIX"] = self.spec.prefix else: