diff --git a/.gitignore b/.gitignore index b71f400e..6abe577d 100644 --- a/.gitignore +++ b/.gitignore @@ -106,6 +106,7 @@ target/ # zig zig-cache/ +\.zig-cache/ zig-out/ zig-test/ dist/ @@ -118,4 +119,4 @@ dist/ *.o tests/utils/libforeign.* -buzz_history \ No newline at end of file +buzz_history diff --git a/README.md b/README.md index ba620ac3..c2c6eaf0 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ A small/lightweight statically typed scripting language written in Zig ## How to build and install -_Latest zig version supported: 0.13.0-dev.211+6a65561e3_ +_Latest zig version supported: 0.13.0-dev.347+30a35a897_ ### Requirements - Since this is built with Zig, you should be able to build buzz on a wide variety of architectures even though this has only been tested on x86/M1. diff --git a/build.zig b/build.zig index 27e4ad89..9138326f 100644 --- a/build.zig +++ b/build.zig @@ -98,7 +98,7 @@ fn getBuzzPrefix(b: *Build) ![]const u8 { pub fn build(b: *Build) !void { // Check minimum zig version const current_zig = builtin.zig_version; - const min_zig = std.SemanticVersion.parse("0.13.0-dev.211+6a65561e3") catch return; + const min_zig = std.SemanticVersion.parse("0.13.0-dev.347+30a35a897") catch return; if (current_zig.order(min_zig).compare(.lt)) { @panic(b.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{ current_zig, min_zig })); } @@ -116,7 +116,7 @@ pub fn build(b: *Build) !void { .sha = std.posix.getenv("GIT_SHA") orelse std.posix.getenv("GITHUB_SHA") orelse std.mem.trim( u8, - (std.ChildProcess.run(.{ + (std.process.Child.run(.{ .allocator = b.allocator, .argv = &.{ "git", diff --git a/src/Codegen.zig b/src/Codegen.zig index 3d0aa5b1..37625e16 100644 --- a/src/Codegen.zig +++ b/src/Codegen.zig @@ -1749,7 +1749,11 @@ fn generateEnum(self: *Self, node: Ast.Node.Index, _: ?*Breaks) Error!?*obj.ObjF try self.ast.toValue(node, self.gc), ), ); - try self.emitCodeArg(locations[node], .OP_DEFINE_GLOBAL, @intCast(components.slot)); + try self.emitCodeArg( + locations[node], + .OP_DEFINE_GLOBAL, + @intCast(components.slot), + ); try self.patchOptJumps(node); try self.endScope(node); diff --git a/src/ext/clap b/src/ext/clap index 1d413d9f..60cd46aa 160000 --- a/src/ext/clap +++ b/src/ext/clap @@ -1 +1 @@ -Subproject commit 1d413d9ffcbd394904fa683ca975b5adbc19e615 +Subproject commit 60cd46aacff4960104703da9ba683077b1e3c76c diff --git a/src/lib/buzz_os.zig b/src/lib/buzz_os.zig index 9651479f..a40c5ee9 100644 --- a/src/lib/buzz_os.zig +++ b/src/lib/buzz_os.zig @@ -171,7 +171,7 @@ pub export fn execute(ctx: *api.NativeCtx) c_int { }; } - var child_process = std.ChildProcess.init(command.items, api.VM.allocator); + var child_process = std.process.Child.init(command.items, api.VM.allocator); child_process.disable_aslr = builtin.target.isDarwin(); const term = child_process.spawnAndWait() catch |err| { diff --git a/src/main.zig b/src/main.zig index 821b2132..bdc44f71 100644 --- a/src/main.zig +++ b/src/main.zig @@ -398,7 +398,7 @@ test "Testing behavior" { ) catch unreachable; defer allocator.free(arg0); - const result = try std.ChildProcess.run( + const result = try std.process.Child.run( .{ .allocator = allocator, .argv = ([_][]const u8{