From 427a212e3865ba73bc6df63c71ce2849ae2de583 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 7 Nov 2020 20:01:48 +0100 Subject: 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. --- lib/std/debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/debug.zig') diff --git a/lib/std/debug.zig b/lib/std/debug.zig index fb1ae69f09..bb769a03c1 100644 --- 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, } } } -- cgit v1.2.3