From 569d3e045efe7d15ecbf4331d093c83f48d3cc38 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 8 Dec 2023 13:45:51 +0100 Subject: build_utils: Be specific in target cache entry store location... ...by specifying which TargetCache instance to use. This will allow 'just serve' to store target cache entries into the correct sharded location. --- src/buildtool/main/build_utils.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/buildtool/main/build_utils.hpp') diff --git a/src/buildtool/main/build_utils.hpp b/src/buildtool/main/build_utils.hpp index 193d5717..116ef1a9 100644 --- a/src/buildtool/main/build_utils.hpp +++ b/src/buildtool/main/build_utils.hpp @@ -28,6 +28,8 @@ #include "gsl/gsl" #include "src/buildtool/common/artifact.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" +#include "src/buildtool/storage/storage.hpp" +#include "src/buildtool/storage/target_cache.hpp" #endif // BOOTSTRAP_BUILD_TOOL // Return disjoint maps for artifacts and runfiles @@ -58,7 +60,8 @@ void WriteTargetCacheEntries( std::size_t jobs, gsl::not_null const& local_api, gsl::not_null const& remote_api, - TargetCacheWriteStrategy strategy = TargetCacheWriteStrategy::Sync); + TargetCacheWriteStrategy strategy = TargetCacheWriteStrategy::Sync, + TargetCache const& tc = Storage::Instance().TargetCache()); #endif // BOOTSTRAP_BUILD_TOOL #endif // INCLUDED_SRC_BUILDOOL_MAIN_BUILD_UTILS_HPP -- cgit v1.2.3