summaryrefslogtreecommitdiff
path: root/src/buildtool/main
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-12-20 16:57:21 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-01-07 14:18:09 +0100
commit972bc9108bc52ade30505ae32b38d663ab02b220 (patch)
treeb3230e6208523a28e5bf4cdaeff3f4852a19eebe /src/buildtool/main
parent71ffe14b0083c9c4975f66db4127de9ee5b9a84d (diff)
downloadjustbuild-972bc9108bc52ade30505ae32b38d663ab02b220.tar.gz
Implement rebuilding of StorageConfig
Diffstat (limited to 'src/buildtool/main')
-rw-r--r--src/buildtool/main/main.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index d125041f..5f06cbad 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -1019,22 +1019,12 @@ auto main(int argc, char* argv[]) -> int {
std::size_t eval_root_jobs =
std::lround(std::ceil(std::sqrt(arguments.common.jobs)));
#ifndef BOOTSTRAP_BUILD_TOOL
- const bool need_rehash =
- arguments.protocol.hash_type != HashFunction::Type::GitSHA1;
- const auto git_storage_config =
- need_rehash ? CreateStorageConfig(arguments.endpoint,
- HashFunction::Type::GitSHA1)
- : std::nullopt;
- if (need_rehash and (not git_storage_config)) {
- return kExitFailure;
- }
std::optional<ServeApi> serve = ServeApi::Create(
*serve_config, &local_context, &remote_context, &main_apis);
if (not EvaluatePrecomputedRoots(&repo_config,
main_repo,
serve ? &*serve : nullptr,
*storage_config,
- git_storage_config,
traverse_args,
&exec_context,
eval_root_jobs)) {