From b194d9d4e2b4a52f103c7bad548852d91563bd09 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 7 Mar 2022 13:23:13 +0100 Subject: LocalCAS: Prefer hard link over copy for owned files --- src/buildtool/execution_api/local/local_action.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/local/local_action.hpp') diff --git a/src/buildtool/execution_api/local/local_action.hpp b/src/buildtool/execution_api/local/local_action.hpp index 3bf49fd2..43569ea3 100644 --- a/src/buildtool/execution_api/local/local_action.hpp +++ b/src/buildtool/execution_api/local/local_action.hpp @@ -115,8 +115,9 @@ class LocalAction final : public IExecutionAction { std::filesystem::path const& exec_path) const noexcept -> bool; /// \brief Store file from path in file CAS and return pointer to digest. - [[nodiscard]] auto DigestFromFile(std::filesystem::path const& file_path) - const noexcept -> gsl::owner; + [[nodiscard]] auto DigestFromOwnedFile( + std::filesystem::path const& file_path) const noexcept + -> gsl::owner; }; #endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_LOCAL_LOCAL_ACTION_HPP -- cgit v1.2.3