diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-07-05 16:13:59 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-07-05 17:25:03 +0200 |
commit | a7462a787fc45bee5e8010686333d1edbf7f3963 (patch) | |
tree | 90b2d8528dbbd9da9f151a3c6793183cfaae7a9a /src/buildtool/execution_api/local/config.hpp | |
parent | 5ad86a9dbae101cc31792c1ca970316f6e41c4b9 (diff) | |
download | justbuild-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/config.hpp')
-rw-r--r-- | src/buildtool/execution_api/local/config.hpp | 13 |
1 files changed, 0 insertions, 13 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{}; |