| ... | @@ -2486,6 +2486,10 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) ! | ... | @@ -2486,6 +2486,10 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) ! |
| 2486 | full_out_path, | 2486 | full_out_path, |
| 2487 | }); | 2487 | }); |
| 2488 | | 2488 | |
| | 2489 | if (target.cpu.arch == .wasm64) { |
| | 2490 | try argv.append("-mwasm64"); |
| | 2491 | } |
| | 2492 | |
| 2489 | if (target.os.tag == .wasi) { | 2493 | if (target.os.tag == .wasi) { |
| 2490 | const is_exe_or_dyn_lib = self.base.options.output_mode == .Exe or | 2494 | const is_exe_or_dyn_lib = self.base.options.output_mode == .Exe or |
| 2491 | (self.base.options.output_mode == .Lib and self.base.options.link_mode == .Dynamic); | 2495 | (self.base.options.output_mode == .Lib and self.base.options.link_mode == .Dynamic); |