When targeting wasm32-freestanding, Zig uses memset for certain operations, like assigning undefined. Instead of pulling in a statically linked version, Zig now requires an imported function instead:
exportfnblah() void {
varfoo: [1000]u8=undefined;
}(module
(type(;0;) (func (parami32i32i32) (resulti32)))
(type(;1;) (func))
(import"env""memset" (func$memset (type0)))
(func$__wasm_call_ctors (type1))
(func$blah (type1)
Looks like this regressed due to #6250
When targeting
wasm32-freestanding, Zig uses memset for certain operations, like assigning undefined. Instead of pulling in a statically linked version, Zig now requires an imported function instead:Looks like this regressed due to #6250