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.
master
Frank Denis 2020-11-07 20:01:48 +01:00 committed by Andrew Kelley
parent fc67e5f843
commit 427a212e38
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}
}
}