authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2020-11-07 20:01:48+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-09 16:23:27-07:00
logc2c3177d8246bebbeb8d4dfd9349318f36122e90
tree6011f39e8bca12c56a6c2158346eed7240462cbe
parenta28c244afb49b505e945e00fbbe9929741c566ee

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.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/debug.zig+1-1
...@@ -666,7 +666,7 @@ pub fn openSelfDebugInfo(allocator: *mem.Allocator) anyerror!DebugInfo {...@@ -666,7 +666,7 @@ pub fn openSelfDebugInfo(allocator: *mem.Allocator) anyerror!DebugInfo {
666 .macos,666 .macos,
667 .windows,667 .windows,
668 => return DebugInfo.init(allocator),668 => return DebugInfo.init(allocator),
669 else => @compileError("openSelfDebugInfo unsupported for this platform"),669 else => return error.UnsupportedDebugInfo,
670 }670 }
671 }671 }
672}672}