aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/platform/darwin.hh
diff options
context:
space:
mode:
authorArtemis Tosini <me@artem.ist>2024-07-07 18:06:08 +0000
committerArtemis Tosini <me@artem.ist>2024-07-07 18:06:08 +0000
commitd461cc1d7b2f489c3886f147166ba5b5e0e37541 (patch)
treede58b03389fda19903ba74ebafee9e3cca321df5 /src/libstore/platform/darwin.hh
parent55a32f24d3285c0b4f6866e16a4c8aeac6345c02 (diff)
libstore: make LocalDerivationGoal::needsHashRewrite virtual
This rather simple function existed just to check some flags, but the response varies by platform. This is a perfect case for our subclasses. Change-Id: Ieb1732a8d024019236e0d0028ad843a24ec3dc59
Diffstat (limited to 'src/libstore/platform/darwin.hh')
-rw-r--r--src/libstore/platform/darwin.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/platform/darwin.hh b/src/libstore/platform/darwin.hh
index 70e8a8587..111d50d87 100644
--- a/src/libstore/platform/darwin.hh
+++ b/src/libstore/platform/darwin.hh
@@ -52,6 +52,13 @@ private:
* Set process flags to enter or leave rosetta, then execute the builder
*/
void execBuilder(std::string builder, Strings args, Strings envStrs) override;
+
+ /**
+ * Whether we need to rewrite output hashes.
+ * Always true on Darwin since Darwin requires hash rewriting
+ * even when sandboxing is enabled.
+ */
+ bool needsHashRewrite() override { return true; };
};
}