Commit c2c3177d82

Frank Denis <github@pureftpd.org>
2020-11-07 20:01:48
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 parent a28c244
Changed files (1)
lib
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,
         }
     }
 }