mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
wasm-linker: add -mwasm64 linker parameter for wasm64 target
This commit is contained in:
parent
dd6ac9a22a
commit
58943fc627
@ -2486,6 +2486,10 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation, prog_node: *std.Progress.Node) !
|
||||
full_out_path,
|
||||
});
|
||||
|
||||
if (target.cpu.arch == .wasm64) {
|
||||
try argv.append("-mwasm64");
|
||||
}
|
||||
|
||||
if (target.os.tag == .wasi) {
|
||||
const is_exe_or_dyn_lib = self.base.options.output_mode == .Exe or
|
||||
(self.base.options.output_mode == .Lib and self.base.options.link_mode == .Dynamic);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user