diff options
Diffstat (limited to 'src/buildtool/execution_api/local/local_response.hpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_response.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/local/local_response.hpp b/src/buildtool/execution_api/local/local_response.hpp index 5c0dcd0a..852284b7 100644 --- a/src/buildtool/execution_api/local/local_response.hpp +++ b/src/buildtool/execution_api/local/local_response.hpp @@ -72,6 +72,24 @@ class LocalResponse final : public IExecutionResponse { Logger::Log(LogLevel::Debug, "reading stdout failed"); return {}; } + auto StdErrDigest() noexcept -> std::optional<ArtifactDigest> final { + auto digest = ArtifactDigestFactory::FromBazel( + storage_.GetHashFunction().GetType(), + output_.action.stderr_digest()); + if (digest) { + return *digest; + } + return std::nullopt; + } + auto StdOutDigest() noexcept -> std::optional<ArtifactDigest> final { + auto digest = ArtifactDigestFactory::FromBazel( + storage_.GetHashFunction().GetType(), + output_.action.stdout_digest()); + if (digest) { + return *digest; + } + return std::nullopt; + } auto ExitCode() const noexcept -> int final { return output_.action.exit_code(); } |