diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2023-01-12 21:03:40 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-01-20 15:27:28 +0100 |
commit | 3430425a300159c4a8a0f67cbbd0c3098daa9dfc (patch) | |
tree | d91c38e8e992977004338e01a3ec03ca5d26cce7 /src/buildtool/build_engine/target_map/target_cache.hpp | |
parent | dc47c8e0878565770120d6511016a31c72df6ada (diff) | |
download | justbuild-3430425a300159c4a8a0f67cbbd0c3098daa9dfc.tar.gz |
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.
Diffstat (limited to 'src/buildtool/build_engine/target_map/target_cache.hpp')
-rw-r--r-- | src/buildtool/build_engine/target_map/target_cache.hpp | 2 |
1 files changed, 0 insertions, 2 deletions
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 <filesystem> #include <functional> #include <optional> -#include <string> #include <utility> #include <gsl-lite/gsl-lite.hpp> @@ -88,7 +87,6 @@ class TargetCache { } [[nodiscard]] static auto ComputeCacheDir(int index) -> std::filesystem::path; - [[nodiscard]] static auto ExecutionBackendId() -> std::string; }; namespace std { |