From ab73759473a3d477905e35cce3f9d94c78ae051f Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Tue, 6 Feb 2024 20:04:01 -0800 Subject: [PATCH] build: Update for latest Zig build system changes --- build.zig | 2 +- build/GenerateDef.zig | 2 +- build/ZigLibDir.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index 1ae241dc..3011e8ec 100644 --- a/build.zig +++ b/build.zig @@ -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", diff --git a/build/GenerateDef.zig b/build/GenerateDef.zig index 24b7a4fb..d9b54f1e 100644 --- a/build/GenerateDef.zig +++ b/build/GenerateDef.zig @@ -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 diff --git a/build/ZigLibDir.zig b/build/ZigLibDir.zig index c0ea1853..2d72bb9b 100644 --- a/build/ZigLibDir.zig +++ b/build/ZigLibDir.zig @@ -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);