From b3173e161dff315720b438f2e7ff7f13ff07d3df Mon Sep 17 00:00:00 2001 From: namedkitten Date: Sat, 18 Jul 2020 14:32:51 +0100 Subject: [PATCH] Use the builder's allocator. --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index e8cf673..6312f13 100644 --- a/build.zig +++ b/build.zig @@ -31,7 +31,7 @@ pub fn build(b: *Builder) void { if (weather_location.len == 0) { weather_location = "\"\""; } else if (weather_location[0] != '"') { - weather_location = std.fmt.allocPrint(std.heap.page_allocator, "\"{}\"", .{weather_location}) catch "\"\""; + weather_location = std.fmt.allocPrint(b.allocator, "\"{}\"", .{weather_location}) catch "\"\""; } exe.addBuildOption([]const u8, "weather_location", weather_location);