leveldb: turning benchmark and tests off (#41518)

This commit is contained in:
Matthieu Dorier 2023-12-11 03:41:03 -06:00 committed by GitHub
parent 64cd429cc8
commit 53493ceab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,10 +70,11 @@ def cmake_args(self):
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