diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-20 16:57:21 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-07 14:18:09 +0100 |
commit | 972bc9108bc52ade30505ae32b38d663ab02b220 (patch) | |
tree | b3230e6208523a28e5bf4cdaeff3f4852a19eebe /src/other_tools/just_mr | |
parent | 71ffe14b0083c9c4975f66db4127de9ee5b9a84d (diff) | |
download | justbuild-972bc9108bc52ade30505ae32b38d663ab02b220.tar.gz |
Implement rebuilding of StorageConfig
Diffstat (limited to 'src/other_tools/just_mr')
-rw-r--r-- | src/other_tools/just_mr/fetch.cpp | 3 | ||||
-rw-r--r-- | src/other_tools/just_mr/setup.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp index ab56db41..307f3aaa 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -358,8 +358,7 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config, std::optional<LockFile> compat_lock = std::nullopt; IExecutionApi::Ptr compat_local_api = nullptr; if (common_args.compatible) { - auto config = StorageConfig::Builder{} - .SetBuildRoot(native_storage_config.build_root) + auto config = StorageConfig::Builder::Rebuild(native_storage_config) .SetHashType(HashFunction::Type::PlainSHA256) .Build(); if (not config) { diff --git a/src/other_tools/just_mr/setup.cpp b/src/other_tools/just_mr/setup.cpp index 3247b06d..55aa328b 100644 --- a/src/other_tools/just_mr/setup.cpp +++ b/src/other_tools/just_mr/setup.cpp @@ -166,8 +166,7 @@ auto MultiRepoSetup(std::shared_ptr<Configuration> const& config, std::optional<LockFile> compat_lock = std::nullopt; IExecutionApi::Ptr compat_local_api = nullptr; if (common_args.compatible) { - auto config = StorageConfig::Builder{} - .SetBuildRoot(native_storage_config.build_root) + auto config = StorageConfig::Builder::Rebuild(native_storage_config) .SetHashType(HashFunction::Type::PlainSHA256) .Build(); if (not config) { |