File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,3 @@ pub const c = @import("c");
55
66/// The wrapped standard calls that make it possible to link pipewire statically.
77pub const wrap = @import ("wrap/root.zig" );
8-
9- comptime {
10- // Force the compiler to reference all declarations in `wrap` since they contain externs.
11- for (std .meta .declarations (wrap )) | decl | {
12- _ = &@field (wrap , decl .name );
13- }
14- }
Original file line number Diff line number Diff line change @@ -6,7 +6,12 @@ const assert = std.debug.assert;
66pub const dlfcn = @import ("dlfcn.zig" );
77pub const fs = @import ("fs.zig" );
88
9- // Check type assumptions.
109comptime {
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}
You can’t perform that action at this time.
0 commit comments