From 32c865dce37ff18d796caa9f3cd760eb22edd8f5 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 20 Dec 2024 12:47:39 +0100 Subject: Pack BackendDescription to a class ...to let it be stored as an independent instance. --- src/buildtool/main/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/buildtool/main/main.cpp') 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 -- cgit v1.2.3