From f7f3d24984deb81deb9bcfe99b4eb37e8d7215bf Mon Sep 17 00:00:00 2001 From: Pavel Verigo Date: Wed, 30 Sep 2026 05:18:52 +0200 Subject: [PATCH] wasm: undefined allowed limit only to == .strong --- src/link/Wasm.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig index 313d5dcd8cf9ba85242a89de43ba50c93ae8dddc..6e77b0f1f8a251c11b1027ce442ed15971711613 100644 --- a/src/link/Wasm.zig +++ b/src/link/Wasm.zig @@ -2721,13 +2721,13 @@ pub const FunctionImportId = enum(u32) { return switch (unpack(id, wasm)) { .object_function_import => |i| { const import = i.value(wasm); - return import.flags.binding == .strong and import.module_name != .none; + return import.flags.binding == .strong; }, .zcu_import => |i| { const zcu = wasm.base.comp.zcu.?; const ip = &zcu.intern_pool; const ext = ip.indexToKey(ip.getNav(i.ptr(wasm).*).resolved.?.value).@"extern"; - return ext.linkage != .weak and ext.lib_name != .none; + return ext.linkage == .strong; }, }; } -- 2.54.0