diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-11 15:19:34 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-13 14:41:00 +0200 |
commit | 0b3c77edde2b3497e3d943d1433d704453eabd19 (patch) | |
tree | 94b83d991320297feffeb9930b05e1e0fc35100e /src/buildtool/execution_api/local/local_cas_reader.cpp | |
parent | ddf48a60029bed958fb2cf0238dbb0bca0b770fb (diff) | |
download | justbuild-0b3c77edde2b3497e3d943d1433d704453eabd19.tar.gz |
Check compatibility in readers based on the hash type
Diffstat (limited to 'src/buildtool/execution_api/local/local_cas_reader.cpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_cas_reader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/local/local_cas_reader.cpp b/src/buildtool/execution_api/local/local_cas_reader.cpp index 2da3bc00..bac7ee71 100644 --- a/src/buildtool/execution_api/local/local_cas_reader.cpp +++ b/src/buildtool/execution_api/local/local_cas_reader.cpp @@ -164,6 +164,10 @@ auto LocalCasReader::DumpRaw(std::filesystem::path const& path, return true; } +auto LocalCasReader::IsNativeProtocol() const noexcept -> bool { + return ProtocolTraits::IsNative(cas_.GetHashFunction().GetType()); +} + namespace { [[nodiscard]] auto AssembleTree( bazel_re::Directory root, |