diff options
Diffstat (limited to 'src/buildtool/build_engine/expression/target_result.hpp')
-rw-r--r-- | src/buildtool/build_engine/expression/target_result.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/build_engine/expression/target_result.hpp b/src/buildtool/build_engine/expression/target_result.hpp index dcf201ee..eba780c4 100644 --- a/src/buildtool/build_engine/expression/target_result.hpp +++ b/src/buildtool/build_engine/expression/target_result.hpp @@ -22,6 +22,7 @@ #include "nlohmann/json.hpp" #include "src/buildtool/build_engine/expression/expression_ptr.hpp" #include "src/buildtool/common/artifact_description.hpp" +#include "src/buildtool/crypto/hash_function.hpp" #include "src/utils/cpp/hash_combine.hpp" struct TargetResult { @@ -30,7 +31,8 @@ struct TargetResult { ExpressionPtr runfiles{}; bool is_cacheable{provides.IsCacheable()}; - [[nodiscard]] static auto FromJson(nlohmann::json const& json) noexcept + [[nodiscard]] static auto FromJson(HashFunction::Type hash_type, + nlohmann::json const& json) noexcept -> std::optional<TargetResult>; [[nodiscard]] auto ToJson() const -> nlohmann::json; |