summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_action.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-07-05 16:13:59 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-07-05 17:25:03 +0200
commita7462a787fc45bee5e8010686333d1edbf7f3963 (patch)
tree90b2d8528dbbd9da9f151a3c6793183cfaae7a9a /src/buildtool/execution_api/local/local_action.cpp
parent5ad86a9dbae101cc31792c1ca970316f6e41c4b9 (diff)
downloadjustbuild-a7462a787fc45bee5e8010686333d1edbf7f3963.tar.gz
Remove option --persistent
... as the --request-action-input option provides a clean way of restoring the inputs to a specific action, without the need of interacting with the internal directory structure of the tool. In particular, the new option also works for remote builds.
Diffstat (limited to 'src/buildtool/execution_api/local/local_action.cpp')
-rw-r--r--src/buildtool/execution_api/local/local_action.cpp3
1 files changed, 1 insertions, 2 deletions
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());