From 1bba42d5168a13dbebda8820fc5e28df1d401669 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 7 Mar 2024 18:14:45 +0100 Subject: target cache: Add type aware of bootstrapping This is needed in order to pass the correctly instantiated TargetCache to AnalyseTarget even when bootstrapping 'just'. --- src/buildtool/storage/target_cache.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/buildtool/storage/target_cache.hpp b/src/buildtool/storage/target_cache.hpp index 385d1cd0..8c92a0a0 100644 --- a/src/buildtool/storage/target_cache.hpp +++ b/src/buildtool/storage/target_cache.hpp @@ -139,6 +139,13 @@ class TargetCache { ArtifactDownloader const& downloader) const noexcept -> bool; }; +#ifdef BOOTSTRAP_BUILD_TOOL +using ActiveTargetCache = TargetCache; +#else +// TargetCache type aware of bootstrapping +using ActiveTargetCache = TargetCache; +#endif // BOOTSTRAP_BUILD_TOOL + #include "src/buildtool/storage/target_cache.tpp" namespace std { -- cgit v1.2.3