From 3430425a300159c4a8a0f67cbbd0c3098daa9dfc Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Thu, 12 Jan 2023 21:03:40 +0100 Subject: Move execution-backend-id calculation from target-level cache to local config This code movement is required to break a cyclic dependency coming with the introduction of the garbage collector. target_cache depends on garbage_collector and garbage_collector would depend on target_cache to determine the target-level-cache directory. After moving this calculation to a more general location, the cycle is broken. --- src/buildtool/build_engine/target_map/target_cache.hpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/buildtool/build_engine/target_map/target_cache.hpp') diff --git a/src/buildtool/build_engine/target_map/target_cache.hpp b/src/buildtool/build_engine/target_map/target_cache.hpp index 6ea29f31..d920c7e9 100644 --- a/src/buildtool/build_engine/target_map/target_cache.hpp +++ b/src/buildtool/build_engine/target_map/target_cache.hpp @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -88,7 +87,6 @@ class TargetCache { } [[nodiscard]] static auto ComputeCacheDir(int index) -> std::filesystem::path; - [[nodiscard]] static auto ExecutionBackendId() -> std::string; }; namespace std { -- cgit v1.2.3