From 3a0f58b1e352d03fd35ac78cdeca6432f2e42f1c Mon Sep 17 00:00:00 2001 From: Richard Patel Date: Tue, 24 Jan 2023 14:00:36 +0000 Subject: [PATCH] rocksdb: build with all CPUs As always, Bazel caching is broken and kind of useless. It constantly rebuilds RocksDB for no particular reason. Each build takes over a minute. Make it faster. Change-Id: I337addd842f2446734b1b47dc35b8e5b9d815b0f --- third_party/rocksdb/rocksdb.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/rocksdb/rocksdb.bzl b/third_party/rocksdb/rocksdb.bzl index 8a7938a..0d05c31 100644 --- a/third_party/rocksdb/rocksdb.bzl +++ b/third_party/rocksdb/rocksdb.bzl @@ -11,7 +11,7 @@ cmake( out_lib_dir = "lib64", out_static_libs = ["librocksdb.a"], visibility = ["//visibility:public"], - build_args = ["--parallel 6"], + build_args = ["--parallel `njobs`"], generate_args = ["-G Ninja"], linkopts = ["-lz", "-lbz2", "-lsnappy", "-lzstd"], cache_entries = {