diff options
author | regnat <rg@regnat.ovh> | 2021-02-04 14:41:49 +0100 |
---|---|---|
committer | Théophane Hufschmitt <regnat@users.noreply.github.com> | 2021-02-19 15:48:31 +0100 |
commit | 4bc28c44f258f4f8c8a3935d1acf746f6abe3d8f (patch) | |
tree | 4b836c507a8c688c6ac065ff022f3f7c190b3763 /src/libstore/build/derivation-goal.hh | |
parent | 0bfbd043699908bcaff1493c733ab4798b642b82 (diff) |
Store the output hashes in the initialOutputs of the drv goal
That way we
1. Don't have to recompute them several times
2. Can compute them in a place where we know the type of the parent
derivation, meaning that we don't need the casting dance we had before
Diffstat (limited to 'src/libstore/build/derivation-goal.hh')
-rw-r--r-- | src/libstore/build/derivation-goal.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build/derivation-goal.hh b/src/libstore/build/derivation-goal.hh index b7b85c85d..761100d3a 100644 --- a/src/libstore/build/derivation-goal.hh +++ b/src/libstore/build/derivation-goal.hh @@ -37,6 +37,7 @@ struct InitialOutputStatus { struct InitialOutput { bool wanted; + Hash outputHash; std::optional<InitialOutputStatus> known; }; |