| ... | @@ -701,17 +701,6 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void { | ... | @@ -701,17 +701,6 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void { |
| 701 | const is_exe_or_dyn_lib = self.base.options.output_mode == .Exe or | 701 | const is_exe_or_dyn_lib = self.base.options.output_mode == .Exe or |
| 702 | (self.base.options.output_mode == .Lib and self.base.options.link_mode == .Dynamic); | 702 | (self.base.options.output_mode == .Lib and self.base.options.link_mode == .Dynamic); |
| 703 | if (is_exe_or_dyn_lib) { | 703 | if (is_exe_or_dyn_lib) { |
| 704 | const system_libs = self.base.options.system_libs.keys(); | | |
| 705 | | | |
| 706 | for (system_libs) |link_lib| { | | |
| 707 | if (mem.eql(u8, "wasi_snapshot_preview1", link_lib)) { | | |
| 708 | // Any referenced symbol from this lib, will be undefined until | | |
| 709 | // runtime as this lib is provided directly by the runtime. | | |
| 710 | continue; | | |
| 711 | } | | |
| 712 | try argv.append(try std.fmt.allocPrint(arena, "-l{s}", .{link_lib})); | | |
| 713 | } | | |
| 714 | | | |
| 715 | const wasi_emulated_libs = self.base.options.wasi_emulated_libs; | 704 | const wasi_emulated_libs = self.base.options.wasi_emulated_libs; |
| 716 | for (wasi_emulated_libs) |crt_file| { | 705 | for (wasi_emulated_libs) |crt_file| { |
| 717 | try argv.append(try comp.get_libc_crt_file( | 706 | try argv.append(try comp.get_libc_crt_file( |