summaryrefslogtreecommitdiff
path: root/src/buildtool/main/main.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-12-20 12:47:39 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-01-07 14:18:09 +0100
commit32c865dce37ff18d796caa9f3cd760eb22edd8f5 (patch)
tree30c4b6961b28adc5a8b7fe2334856b3e48c40d58 /src/buildtool/main/main.cpp
parentbc0085a9b4bc9f9b66f04e6971ac6eadc58e4479 (diff)
downloadjustbuild-32c865dce37ff18d796caa9f3cd760eb22edd8f5.tar.gz
Pack BackendDescription to a class
...to let it be stored as an independent instance.
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r--src/buildtool/main/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index 42a36391..bc159f6c 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -248,14 +248,15 @@ void StoreTargetCacheShard(
Storage const& storage,
RemoteExecutionConfig const& remote_exec_config) noexcept {
auto backend_description =
- DescribeBackend(remote_exec_config.remote_address,
- remote_exec_config.platform_properties,
- remote_exec_config.dispatch);
+ BackendDescription::Describe(remote_exec_config.remote_address,
+ remote_exec_config.platform_properties,
+ remote_exec_config.dispatch);
if (not backend_description) {
Logger::Log(LogLevel::Error, backend_description.error());
std::exit(kExitFailure);
}
- std::ignore = storage.CAS().StoreBlob(*backend_description);
+ std::ignore =
+ storage.CAS().StoreBlob(backend_description->GetDescription());
}
#endif // BOOTSTRAP_BUILD_TOOL