summaryrefslogtreecommitdiff
path: root/src/walk.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/walk.zig')
-rw-r--r--src/walk.zig8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/walk.zig b/src/walk.zig
index 88f62736..c5a6e7a2 100644
--- a/src/walk.zig
+++ b/src/walk.zig
@@ -111,12 +111,14 @@ fn hashBlob(comptime E: type, items: []const E, h: *Hasher) void {
const b = blob_words.get(addr) orelse break :kept null;
break :kept if (b.len == items.len) b.word else null;
} else null;
- if (blobs_out) |list| {
+ // The lists are the C heap's (a replica client's, a session's join),
+ // which a build with no libc (the web) has neither of.
+ if (comptime builtin.link_libc) if (blobs_out) |list| {
list.append(std.heap.c_allocator, std.mem.sliceAsBytes(items)) catch {};
break :word 0;
- }
+ };
if (!rehash) if (kept) |w| break :word w;
- if (E == u8) if (unhashed_out) |list| if (kept == null) {
+ if (comptime builtin.link_libc) if (E == u8) if (unhashed_out) |list| if (kept == null) {
list.append(std.heap.c_allocator, items) catch {};
break :word 0;
};