| author | |
| committer | |
| log | e24dcd2707b5956cd53d4b38dc3ac6be0cf0a264 |
| tree | 8ea6a97af42a4f2b806a4eae6c34c5cabb7c0fbc |
| parent | 696e51be4971631b05bd9eda52e36c7be3a83342 |
This whole thing needs to be reworked but for now at least don't cause a
compile error when building for a target that doesn't have stderr or
detectTTYConfig.1 files changed, 5 insertions(+), 0 deletions(-)
lib/std/builtin.zig+5| ... | ... | @@ -61,6 +61,11 @@ pub const StackTrace = struct { |
| 61 | 61 | options: std.fmt.FormatOptions, |
| 62 | 62 | writer: anytype, |
| 63 | 63 | ) !void { |
| 64 | // TODO: re-evaluate whether to use format() methods at all. | |
| 65 | // Until then, avoid an error when using GeneralPurposeAllocator with WebAssembly | |
| 66 | // where it tries to call detectTTYConfig here. | |
| 67 | if (builtin.os.tag == .freestanding) return; | |
| 68 | ||
| 64 | 69 | _ = fmt; |
| 65 | 70 | _ = options; |
| 66 | 71 | var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); |