Skip to content

Commit

Permalink
fix: zig 0.14.0-dev.2643+fb43e91b2 fixes the tail call issue
Browse files Browse the repository at this point in the history
  • Loading branch information
giann committed Jan 14, 2025
1 parent 6221243 commit 70dfbcb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
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.14.0-dev.2634+b36ea592b_
_Latest zig version supported: 0.14.0-dev.2643+fb43e91b2_

### 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
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,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.14.0-dev.2634+b36ea592b") catch return;
const min_zig = std.SemanticVersion.parse("0.14.0-dev.2643+fb43e91b2") 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 Down
3 changes: 1 addition & 2 deletions src/vm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const JIT = if (!is_wasm) @import("Jit.zig") else void;
const Token = @import("Token.zig");
const Reporter = @import("Reporter.zig");
const FFI = if (!is_wasm) @import("FFI.zig") else void;
// TODO: put back .always_tail once https://github.com/ziglang/zig/issues/22474 is fixed
const dispatch_call_modifier: std.builtin.CallModifier = .auto; //if (!is_wasm) .always_tail else .auto;
const dispatch_call_modifier: std.builtin.CallModifier = if (!is_wasm) .always_tail else .auto;
const io = @import("io.zig");

const ObjType = _obj.ObjType;
Expand Down

0 comments on commit 70dfbcb

Please sign in to comment.