diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-16 00:39:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 17:51:20 -0700 |
| commit | 2047a6b82d2e6cdbddde3e7f1c93df9e72216052 (patch) | |
| tree | c9717626d48bc85a0e5dbe12bb2d815241ac9c94 /src/link/Wasm.zig | |
| parent | 46297087871dec88c2b632d057f1e55b662126df (diff) | |
| download | zig-2047a6b82d2e6cdbddde3e7f1c93df9e72216052.tar.gz zig-2047a6b82d2e6cdbddde3e7f1c93df9e72216052.zip | |
fix remaining compile errors except one
Diffstat (limited to 'src/link/Wasm.zig')
| -rw-r--r-- | src/link/Wasm.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig index 874cc2d9b3..7ec9506751 100644 --- a/src/link/Wasm.zig +++ b/src/link/Wasm.zig @@ -378,7 +378,6 @@ pub fn open( emit: Compilation.Emit, options: link.File.OpenOptions, ) !*Wasm { - if (build_options.only_c) unreachable; const gpa = comp.gpa; const target = comp.root_mod.resolved_target.result; assert(target.ofmt == .wasm); @@ -549,6 +548,7 @@ pub fn createEmpty( .comp = comp, .emit = emit, .gc_sections = options.gc_sections orelse (output_mode != .Obj), + .print_gc_sections = options.print_gc_sections, .stack_size = options.stack_size orelse std.wasm.page_size * 16, // 1MB .allow_shlib_undefined = options.allow_shlib_undefined orelse false, .file = null, @@ -1893,7 +1893,12 @@ pub fn getAnonDeclVAddr(wasm: *Wasm, decl_val: InternPool.Index, reloc_info: lin return target_symbol_index; } -pub fn deleteDeclExport(wasm: *Wasm, decl_index: InternPool.DeclIndex) void { +pub fn deleteDeclExport( + wasm: *Wasm, + decl_index: InternPool.DeclIndex, + name: InternPool.NullTerminatedString, +) void { + _ = name; if (wasm.llvm_object) |_| return; const atom_index = wasm.decls.get(decl_index) orelse return; const sym_index = wasm.getAtom(atom_index).sym_index; |
