aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2020-11-07 20:01:48 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-11-09 18:22:50 -0500
commit427a212e3865ba73bc6df63c71ce2849ae2de583 (patch)
treed419247e6e3ef837a4a307f3caee407028f9777c /lib/std
parentfc67e5f843ae358747bac57f2ae7c816a2ccb4df (diff)
downloadzig-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')
-rw-r--r--lib/std/debug.zig2
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,
}
}
}