summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api')
-rw-r--r--src/buildtool/execution_api/local/config.hpp13
-rw-r--r--src/buildtool/execution_api/local/local_action.cpp3
2 files changed, 1 insertions, 15 deletions
diff --git a/src/buildtool/execution_api/local/config.hpp b/src/buildtool/execution_api/local/config.hpp
index 5ce8b9ef..71a4941e 100644
--- a/src/buildtool/execution_api/local/config.hpp
+++ b/src/buildtool/execution_api/local/config.hpp
@@ -37,9 +37,6 @@ class LocalExecutionConfig {
// Launcher to be prepended to action's command before executed.
// Default: ["env", "--"]
std::vector<std::string> launcher{"env", "--"};
-
- // Persistent build directory option
- bool keep_build_dir{false};
};
// different folder for different caching protocol
@@ -77,12 +74,6 @@ class LocalExecutionConfig {
return true;
}
- [[nodiscard]] static auto SetKeepBuildDir(bool is_persistent) noexcept
- -> bool {
- Data().keep_build_dir = is_persistent;
- return true;
- }
-
/// \brief User directory.
[[nodiscard]] static auto GetUserDir() noexcept -> std::filesystem::path {
return GetUserHome() / ".cache" / "just";
@@ -134,10 +125,6 @@ class LocalExecutionConfig {
return Data().launcher;
}
- [[nodiscard]] static auto KeepBuildDir() noexcept -> bool {
- return Data().keep_build_dir;
- }
-
private:
[[nodiscard]] static auto Data() noexcept -> ConfigData& {
static ConfigData instance{};
diff --git a/src/buildtool/execution_api/local/local_action.cpp b/src/buildtool/execution_api/local/local_action.cpp
index 74f90258..3ccc58eb 100644
--- a/src/buildtool/execution_api/local/local_action.cpp
+++ b/src/buildtool/execution_api/local/local_action.cpp
@@ -22,8 +22,7 @@ class BuildCleanupAnchor {
auto operator=(BuildCleanupAnchor const&) -> BuildCleanupAnchor& = delete;
auto operator=(BuildCleanupAnchor&&) -> BuildCleanupAnchor& = delete;
~BuildCleanupAnchor() {
- if (not LocalExecutionConfig::KeepBuildDir() and
- not FileSystemManager::RemoveDirectory(build_path, true)) {
+ if (not FileSystemManager::RemoveDirectory(build_path, true)) {
Logger::Log(LogLevel::Error,
"Could not cleanup build directory {}",
build_path.string());