diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-06-28 16:15:18 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-06-28 18:47:34 +0200 |
commit | 4e7d2c467d384503fedb5e6e36052cd56d69666e (patch) | |
tree | 666177ca79584ca2acf57ccd326f336464c81b71 /src | |
parent | f0d2d5d789760fb5f097bc9c5e71633ed0da205c (diff) | |
download | justbuild-4e7d2c467d384503fedb5e6e36052cd56d69666e.tar.gz |
just-mr: move tmp-workspace under generation rotation
... so that any left-over directories, in case of abnormal termination
are cleaned up eventually.
Diffstat (limited to 'src')
-rw-r--r-- | src/other_tools/just_mr/utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/other_tools/just_mr/utils.cpp b/src/other_tools/just_mr/utils.cpp index d95163fa..94a1f53b 100644 --- a/src/other_tools/just_mr/utils.cpp +++ b/src/other_tools/just_mr/utils.cpp @@ -38,7 +38,8 @@ auto GetGitRoot(JustMR::PathsPtr const& just_mr_paths, auto CreateTypedTmpDir(std::string const& type) noexcept -> TmpDirPtr { // try to create parent dir - auto parent_path = StorageConfig::BuildRoot() / "tmp-workspaces" / type; + auto parent_path = + StorageConfig::GenerationCacheRoot(0) / "tmp-workspaces" / type; return TmpDir::Create(parent_path); } |