Skip to content

Commit

Permalink
chore: zig 0.13.0-dev.347+30a35a897
Browse files Browse the repository at this point in the history
  • Loading branch information
giann committed May 31, 2024
1 parent fb26dc8 commit e4458fa
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ target/

# zig
zig-cache/
\.zig-cache/
zig-out/
zig-test/
dist/
Expand All @@ -118,4 +119,4 @@ dist/
*.o

tests/utils/libforeign.*
buzz_history
buzz_history
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
}
Expand All @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion src/Codegen.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/ext/clap
Submodule clap updated 2 files
+1 −1 .gitignore
+4 −4 build.zig
2 changes: 1 addition & 1 deletion src/lib/buzz_os.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit e4458fa

Please sign in to comment.