summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/storage/config.hpp')
-rw-r--r--src/buildtool/storage/config.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/buildtool/storage/config.hpp b/src/buildtool/storage/config.hpp
index 069daed2..92358d12 100644
--- a/src/buildtool/storage/config.hpp
+++ b/src/buildtool/storage/config.hpp
@@ -170,11 +170,18 @@ class StorageConfig {
}
}
+ /// \brief Root directory for all ephemeral directories, i.e., directories
+ /// that can (and should) be removed immediately by garbage collection.
+ [[nodiscard]] static auto EphemeralRoot() noexcept
+ -> std::filesystem::path {
+ return GenerationCacheRoot(0) / "ephemeral";
+ }
+
/// \brief Root directory for local action executions; individual actions
/// create a working directory below this root.
[[nodiscard]] static auto ExecutionRoot() noexcept
-> std::filesystem::path {
- return GenerationCacheRoot(0) / "exec_root";
+ return EphemeralRoot() / "exec_root";
}
private: