Skip to content

Commit

Permalink
build: Update for latest Zig build system changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Feb 7, 2024
1 parent 557fcc0 commit ab73759
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ pub fn build(b: *Build) !void {

const integration_test_runner = b.addRunArtifact(integration_tests);
integration_test_runner.addArg(b.pathFromRoot("test/cases"));
integration_test_runner.addArg(b.zig_exe);
integration_test_runner.addArg(b.graph.zig_exe);

const record_tests = b.addExecutable(.{
.name = "record-runner",
Expand Down
2 changes: 1 addition & 1 deletion build/GenerateDef.zig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
const self = @fieldParentPtr(GenerateDef, "step", step);
const arena = b.allocator;

var man = b.cache.obtain();
var man = b.graph.cache.obtain();
defer man.deinit();

// Random bytes to make GenerateDef unique. Refresh this with new
Expand Down
2 changes: 1 addition & 1 deletion build/ZigLibDir.zig
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
const b = step.owner;
const self = @fieldParentPtr(ZigLibDir, "step", step);

const zig_env_args: [2][]const u8 = .{ b.zig_exe, "env" };
const zig_env_args: [2][]const u8 = .{ b.graph.zig_exe, "env" };
var out_code: u8 = undefined;
const zig_env = try b.runAllowFail(&zig_env_args, &out_code, .Ignore);

Expand Down

0 comments on commit ab73759

Please sign in to comment.