zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c2c3177d8246bebbeb8d4dfd9349318f36122e90 (tree)
parent a28c244afb49b505e945e00fbbe9929741c566ee
Author: Frank Denis <github@pureftpd.org>
Date:   Sat,  7 Nov 2020 20:01:48 +0100

Don't prevent compilation on platforms where debug info is unsupported

We don't support debug information on platforms that are not tier-1,
but it shouldn't be a hard error that completely prevents compilation.

Diffstat:
Mlib/std/debug.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/debug.zig b/lib/std/debug.zig @@ -666,7 +666,7 @@ pub fn openSelfDebugInfo(allocator: *mem.Allocator) anyerror!DebugInfo { .macos, .windows, => return DebugInfo.init(allocator), - else => @compileError("openSelfDebugInfo unsupported for this platform"), + else => return error.UnsupportedDebugInfo, } } }