summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/file_storage.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-04-02 16:34:22 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-04-17 09:28:54 +0200
commit8d9b157cc4b6f1dec51de3696f4e96b853c22aa1 (patch)
tree43b5edf6e821647546a4e9e3422633c237e90be1 /src/buildtool/file_system/file_storage.hpp
parent4dc2cafb17c2dbdb58ada3a200e843a894bfc113 (diff)
downloadjustbuild-8d9b157cc4b6f1dec51de3696f4e96b853c22aa1.tar.gz
Compactification: Obtain storage roots from LocalCAS.
Diffstat (limited to 'src/buildtool/file_system/file_storage.hpp')
-rw-r--r--src/buildtool/file_system/file_storage.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/file_system/file_storage.hpp b/src/buildtool/file_system/file_storage.hpp
index 6006a410..178fa7da 100644
--- a/src/buildtool/file_system/file_storage.hpp
+++ b/src/buildtool/file_system/file_storage.hpp
@@ -74,7 +74,8 @@ class FileStorage {
return storage_root_ / id.substr(0, 2) / id.substr(2, id.size() - 2);
}
- [[nodiscard]] auto StorageRoot() const noexcept -> std::filesystem::path {
+ [[nodiscard]] auto StorageRoot() const noexcept
+ -> std::filesystem::path const& {
return storage_root_;
}