From 88b3c144265b0e22250f21809bbf9329ecfcfd6f Mon Sep 17 00:00:00 2001 From: Jae B Date: Sat, 24 Feb 2024 11:24:34 +1100 Subject: [PATCH] fix compilation issues ie. C:\zig\current\lib\std\debug.zig:726:23: error: no field or member function named 'getDwarfInfoForAddress' in 'dwarf.DwarfInfo' if (try module.getDwarfInfoForAddress(unwind_state.debug_info.allocator, unwind_state.dwarf_context.pc)) |di| { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ C:\zig\current\lib\std\dwarf.zig:663:23: note: struct declared here pub const DwarfInfo = struct { ^~~~~~ referenced by: next_internal: C:\zig\current\lib\std\debug.zig:737:29 next: C:\zig\current\lib\std\debug.zig:654:31 remaining reference traces hidden; use '-freference-trace' to see all reference traces C:\zig\current\lib\std\debug.zig:970:31: error: no field or member function named 'getSymbolAtAddress' in 'dwarf.DwarfInfo' const symbol_info = module.getSymbolAtAddress(debug_info.allocator, address) catch |err| switch (err) { ~~~~~~^~~~~~~~~~~~~~~~~~~ C:\zig\current\lib\std\dwarf.zig:663:23: note: struct declared here pub const DwarfInfo = struct { --- lib/std/debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 3b9e46be92..6801e23665 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -2444,7 +2444,7 @@ pub const ModuleDebugInfo = switch (native_os) { return &self.dwarf; } }, - .wasi => struct { + .wasi, .emscripten => struct { pub fn deinit(self: *@This(), allocator: mem.Allocator) void { _ = self; _ = allocator;