authorgravatar for john.schmidt.h@gmail.comJohn Schmidt <john.schmidt.h@gmail.com> 2022-08-21 18:12:13+02:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-08-21 23:41:01+03:00
log9cf667a21bfef3660183ed67baacb5b32c0f06e2
tree692ecba0a3857ece5508c0bbeaf1b9ce867bc039
parent02070ae26b872aa4a1b3da4c1820a4a360c7ee92

Enable unexpectedErrno error tracing for stage2 LLVM

Stage2 seems to be able to handle this now.

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

lib/std/os.zig+1-5
...@@ -5447,11 +5447,7 @@ pub fn toPosixPath(file_path: []const u8) ![MAX_PATH_BYTES - 1:0]u8 {...@@ -5447,11 +5447,7 @@ pub fn toPosixPath(file_path: []const u8) ![MAX_PATH_BYTES - 1:0]u8 {
5447/// if this happens the fix is to add the error code to the corresponding5447/// if this happens the fix is to add the error code to the corresponding
5448/// switch expression, possibly introduce a new error in the error set, and5448/// switch expression, possibly introduce a new error in the error set, and
5449/// send a patch to Zig.5449/// send a patch to Zig.
5450/// The self-hosted compiler is not fully capable of handle the related code.5450pub const unexpected_error_tracing = (builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and builtin.mode == .Debug;
5451/// Until then, unexpected error tracing is disabled for the self-hosted compiler.
5452/// TODO remove this once self-hosted is capable enough to handle printing and
5453/// stack trace dumping.
5454pub const unexpected_error_tracing = builtin.zig_backend == .stage1 and builtin.mode == .Debug;
54555451
5456pub const UnexpectedError = error{5452pub const UnexpectedError = error{
5457 /// The Operating System returned an undocumented error code.5453 /// The Operating System returned an undocumented error code.