diff options
| author | Frank Denis <github@pureftpd.org> | 2020-11-07 20:01:48 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-11-09 18:22:50 -0500 |
| commit | 427a212e3865ba73bc6df63c71ce2849ae2de583 (patch) | |
| tree | d419247e6e3ef837a4a307f3caee407028f9777c /lib/std/debug.zig | |
| parent | fc67e5f843ae358747bac57f2ae7c816a2ccb4df (diff) | |
| download | zig-427a212e3865ba73bc6df63c71ce2849ae2de583.tar.gz zig-427a212e3865ba73bc6df63c71ce2849ae2de583.zip | |
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 (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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, } } } |
