diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-07 18:14:45 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-11 15:59:05 +0100 |
commit | 1bba42d5168a13dbebda8820fc5e28df1d401669 (patch) | |
tree | aff4af806400548073c1e91014a1e79d2c1051b0 /src | |
parent | 55fc744a5dcbd839a85c3437de3550da9e29eea3 (diff) | |
download | justbuild-1bba42d5168a13dbebda8820fc5e28df1d401669.tar.gz |
target cache: Add type aware of bootstrapping
This is needed in order to pass the correctly instantiated
TargetCache to AnalyseTarget even when bootstrapping 'just'.
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/storage/target_cache.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<false>; +#else +// TargetCache type aware of bootstrapping +using ActiveTargetCache = TargetCache<true>; +#endif // BOOTSTRAP_BUILD_TOOL + #include "src/buildtool/storage/target_cache.tpp" namespace std { |