fix stage2 compiler error

This commit is contained in:
Mitchell Hashimoto
2022-08-21 21:38:24 -07:00
parent 13225a2d78
commit 5c61bfbe8f

View File

@ -32,7 +32,10 @@ pub fn main() !void {
};
// If we're tracing, then wrap memory so we can trace allocations
const alloc = if (!tracy.enabled) gpa else tracy.allocator(gpa, null).allocator();
const alloc = if (!tracy.enabled) gpa else alloc: {
var tracy_alloc = tracy.allocator(gpa, null);
break :alloc tracy_alloc.allocator();
};
// Parse the config from the CLI args
var config = config: {