diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-12-20 12:47:39 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-07 14:18:09 +0100 |
commit | 32c865dce37ff18d796caa9f3cd760eb22edd8f5 (patch) | |
tree | 30c4b6961b28adc5a8b7fe2334856b3e48c40d58 /src/buildtool/main | |
parent | bc0085a9b4bc9f9b66f04e6971ac6eadc58e4479 (diff) | |
download | justbuild-32c865dce37ff18d796caa9f3cd760eb22edd8f5.tar.gz |
Pack BackendDescription to a class
...to let it be stored as an independent instance.
Diffstat (limited to 'src/buildtool/main')
-rw-r--r-- | src/buildtool/main/main.cpp | 9 |
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 |