std lib general purpose allocator: disable stack tracing on mips

Sadly, trying to collect stack frames goes into an infinite loop on
mips. This sets the default number of stack frames to collect to 0 on
mips.
This commit is contained in:
Andrew Kelley
2020-08-08 02:15:46 -07:00
parent 72b5ceed66
commit 051aadd781
2 changed files with 17 additions and 3 deletions

View File

@@ -9363,7 +9363,7 @@ pub fn main() !void {
Finally, if none of the above apply, you need a general purpose allocator.
Zig's general purpose allocator is available as a function that takes a {#link|comptime#}
{#link|struct#} of configuration options and returns a type.
Generally, you will set up one {#syntax#}std.heap.GeneralPurposeAllocator#{endsyntax#} in
Generally, you will set up one {#syntax#}std.heap.GeneralPurposeAllocator{#endsyntax#} in
your main function, and then pass it or sub-allocators around to various parts of your
application.
</li>