From e20e6957751dbc4a8ff84f25b86ca579eb8d000d Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Fri, 2 Jun 2023 17:07:16 -0700 Subject: continue if import is standalone (#3178) --- src/linker.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/linker.zig b/src/linker.zig index a2f1dab71..461bcf808 100644 --- a/src/linker.zig +++ b/src/linker.zig @@ -478,8 +478,9 @@ pub const Linker = struct { }; if (resolved_import_) |*resolved_import| { - if (resolved_import.is_external) { - externals.append(record_index) catch unreachable; + if (resolved_import.is_external or resolved_import.is_standalone_module) { + if (resolved_import.is_external) + externals.append(record_index) catch unreachable; continue; } -- cgit v1.2.3