summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Dorier <mdorier@anl.gov>2023-12-11 03:41:03 -0600
committerGitHub <noreply@github.com>2023-12-11 10:41:03 +0100
commit53493ceab19f9d3b3ab0e8cced08df22fd9242a4 (patch)
tree9faf119e3097e97bc080e3b78249b6b645e4f4ec
parent64cd429cc8dff73af130ea9617d12fddaf93021c (diff)
downloadspack-53493ceab19f9d3b3ab0e8cced08df22fd9242a4.tar.gz
spack-53493ceab19f9d3b3ab0e8cced08df22fd9242a4.tar.bz2
spack-53493ceab19f9d3b3ab0e8cced08df22fd9242a4.tar.xz
spack-53493ceab19f9d3b3ab0e8cced08df22fd9242a4.zip
leveldb: turning benchmark and tests off (#41518)
-rw-r--r--var/spack/repos/builtin/packages/leveldb/package.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/leveldb/package.py b/var/spack/repos/builtin/packages/leveldb/package.py
index d6a1fd3ec5..f70d68b303 100644
--- a/var/spack/repos/builtin/packages/leveldb/package.py
+++ b/var/spack/repos/builtin/packages/leveldb/package.py
@@ -70,10 +70,11 @@ class Leveldb(CMakePackage):
else:
args.append("-DBUILD_SHARED_LIBS=OFF")
- # The tarball is missing the benchmark and test submodules
- if self.spec.satisfies("@1.23:"):
- args.append("-DLEVELDB_BUILD_BENCHMARKS=OFF")
- args.append("-DLEVELDB_BUILD_TESTS=OFF")
+ # 1.23 tarball is missing the benchmark and test submodules
+ # and for older versions, some compilers fail to compile the
+ # benchmarks
+ args.append("-DLEVELDB_BUILD_BENCHMARKS=OFF")
+ args.append("-DLEVELDB_BUILD_TESTS=OFF")
return args