Skip to content

Commit 35326da

Browse files
committed
Fixes build with use zig module set to false
1 parent 5f02774 commit 35326da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/wrap/root.zig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ const assert = std.debug.assert;
66
pub const dlfcn = @import("dlfcn.zig");
77
pub const fs = @import("fs.zig");
88

9-
// Check type assumptions.
109
comptime {
10+
// Check type assumptions.
1111
assert(@sizeOf(c_char) == @sizeOf(u8));
12+
13+
// Reference all decls since they include exports.
14+
for (std.meta.declarations(@This())) |decl| {
15+
_ = &@field(@This(), decl.name);
16+
}
1217
}

0 commit comments

Comments
 (0)