allocgate: stage 1 and 2 building

This commit is contained in:
Lee Cannon
2021-10-29 02:03:15 +01:00
parent 47bc13bc59
commit 75548b50ff
48 changed files with 227 additions and 200 deletions

View File

@@ -450,8 +450,13 @@ const cpu_targets = struct {
pub fn main() anyerror!void {
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit();
<<<<<<< HEAD
const allocator = &arena.allocator;
=======
const allocator = arena.getAllocator();
>>>>>>> 11157e318 (allocgate: stage 1 and 2 building)
const args = try std.process.argsAlloc(allocator);
if (args.len <= 1) {