Is std.ArrayList not supported on this target?
Here is my code:
const allocator = std.heap.wasm_allocator;
var structs = std.ArrayList(MyStruct).init(allocator);
try structs.append(.{
.name = decl.name,
.size = size,
.fields = &struct_fields,
});
xxx@Theos-MacBook-Pro ~/i/webgpu-zig (main)> zig build-lib src/generate.zig -target wasm32-freestanding -freference-trace
/Users/xxx/tools/zig/lib/std/os.zig:149:24: error: struct 'os.system__struct_3279' has no member named 'fd_t'
pub const fd_t = system.fd_t;
~~~~~~^~~~~
/Users/xxx/tools/zig/lib/std/os.zig:70:13: note: struct declared here
else => struct {},
When I remove the std.ArrayList, it compiles OK, any idea?
Thanks 🙏