diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-04 03:48:50 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-03-04 04:36:23 +0100 |
commit | ea0008deea7769541fdbf7629bbeb8e9581d73a7 (patch) | |
tree | 603bf030b32f0bb9d39cae9ae345b20678850ecf /src/libstore/build-result.hh | |
parent | 8867479b2712d244dc3fd3829ba6710a0c14ebab (diff) |
Merge pull request #9094 from obsidiansystems/test-proto
Test the rest of the worker protocol serializers
(cherry picked from commit 2f1c16dfa2378fd8616bff1b9b7cd0b4d42af69b)
Change-Id: Idfd72d32b21d14a260e02f65531d287cef7464d2
Diffstat (limited to 'src/libstore/build-result.hh')
-rw-r--r-- | src/libstore/build-result.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/build-result.hh b/src/libstore/build-result.hh index b7a56e791..8840fa7e3 100644 --- a/src/libstore/build-result.hh +++ b/src/libstore/build-result.hh @@ -3,6 +3,7 @@ #include "realisation.hh" #include "derived-path.hh" +#include "comparator.hh" #include <string> #include <chrono> @@ -100,6 +101,8 @@ struct BuildResult */ std::optional<std::chrono::microseconds> cpuUser, cpuSystem; + DECLARE_CMP(BuildResult); + bool success() { return status == Built || status == Substituted || status == AlreadyValid || status == ResolvesToAlreadyValid; |