Skip to content

Commit

Permalink
Use std.Build.LazyPath over now removed std.Build.FileSource.
Browse files Browse the repository at this point in the history
See corresponding ziglang change here: ziglang/zig#16353
  • Loading branch information
drglove committed Jan 5, 2024
1 parent 528a864 commit 7a0cbb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/tests.zig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const mem = std.mem;
const Allocator = std.mem.Allocator;
const Child = std.process.Child;
const Build = std.Build;
const FileSource = std.Build.FileSource;
const LazyPath = std.Build.LazyPath;
const Reader = fs.File.Reader;
const RunStep = std.Build.RunStep;
const Step = Build.Step;
Expand Down Expand Up @@ -132,9 +132,9 @@ fn createCase(b: *Build, name: []const u8) *Step {
const CheckNamedStep = struct {
step: Step,
exercise: Exercise,
stderr: FileSource,
stderr: LazyPath,

pub fn create(owner: *Build, exercise: Exercise, stderr: FileSource) *CheckNamedStep {
pub fn create(owner: *Build, exercise: Exercise, stderr: LazyPath) *CheckNamedStep {
const self = owner.allocator.create(CheckNamedStep) catch @panic("OOM");
self.* = .{
.step = Step.init(.{
Expand Down Expand Up @@ -180,12 +180,12 @@ const CheckNamedStep = struct {
const CheckStep = struct {
step: Step,
exercises: []const Exercise,
stderr: FileSource,
stderr: LazyPath,

pub fn create(
owner: *Build,
exercises: []const Exercise,
stderr: FileSource,
stderr: LazyPath,
) *CheckStep {
const self = owner.allocator.create(CheckStep) catch @panic("OOM");
self.* = .{
Expand Down

0 comments on commit 7a0cbb1

Please sign in to comment.