@@ -82,7 +82,7 @@ has_side_effects: bool = false,
8282pub const StdIn = union (enum ) {
8383 none ,
8484 bytes : []const u8 ,
85- file_source : std.Build.LazyPath ,
85+ lazy_path : std.Build.LazyPath ,
8686};
8787
8888pub const StdIo = union (enum ) {
@@ -120,15 +120,15 @@ pub const StdIo = union(enum) {
120120
121121pub const Arg = union (enum ) {
122122 artifact : * Step.Compile ,
123- file_source : PrefixedLazyPath ,
123+ lazy_path : PrefixedLazyPath ,
124124 directory_source : PrefixedLazyPath ,
125125 bytes : []u8 ,
126126 output : * Output ,
127127};
128128
129129pub const PrefixedLazyPath = struct {
130130 prefix : []const u8 ,
131- file_source : std.Build.LazyPath ,
131+ lazy_path : std.Build.LazyPath ,
132132};
133133
134134pub const Output = struct {
@@ -213,9 +213,9 @@ pub fn addPrefixedFileArg(self: *Run, prefix: []const u8, lp: std.Build.LazyPath
213213
214214 const prefixed_file_source : PrefixedLazyPath = .{
215215 .prefix = b .dupe (prefix ),
216- .file_source = lp .dupe (b ),
216+ .lazy_path = lp .dupe (b ),
217217 };
218- self .argv .append (.{ .file_source = prefixed_file_source }) catch @panic ("OOM" );
218+ self .argv .append (.{ .lazy_path = prefixed_file_source }) catch @panic ("OOM" );
219219 lp .addStepDependencies (& self .step );
220220}
221221
@@ -234,7 +234,7 @@ pub fn addPrefixedDirectoryArg(self: *Run, prefix: []const u8, directory_source:
234234
235235 const prefixed_directory_source : PrefixedLazyPath = .{
236236 .prefix = b .dupe (prefix ),
237- .file_source = directory_source .dupe (b ),
237+ .lazy_path = directory_source .dupe (b ),
238238 };
239239 self .argv .append (.{ .directory_source = prefixed_directory_source }) catch @panic ("OOM" );
240240 directory_source .addStepDependencies (& self .step );
@@ -252,7 +252,7 @@ pub fn addArgs(self: *Run, args: []const []const u8) void {
252252
253253pub fn setStdIn (self : * Run , stdin : StdIn ) void {
254254 switch (stdin ) {
255- .file_source = > | file_source | file_source .addStepDependencies (& self .step ),
255+ .lazy_path = > | lazy_path | lazy_path .addStepDependencies (& self .step ),
256256 .bytes , .none = > {},
257257 }
258258 self .stdin = stdin ;
@@ -444,14 +444,14 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
444444 try argv_list .append (bytes );
445445 man .hash .addBytes (bytes );
446446 },
447- .file_source = > | file | {
448- const file_path = file .file_source .getPath (b );
447+ .lazy_path = > | file | {
448+ const file_path = file .lazy_path .getPath (b );
449449 try argv_list .append (b .fmt ("{s}{s}" , .{ file .prefix , file_path }));
450450 man .hash .addBytes (file .prefix );
451451 _ = try man .addFile (file_path , null );
452452 },
453453 .directory_source = > | file | {
454- const file_path = file .file_source .getPath (b );
454+ const file_path = file .lazy_path .getPath (b );
455455 try argv_list .append (b .fmt ("{s}{s}" , .{ file .prefix , file_path }));
456456 man .hash .addBytes (file .prefix );
457457 man .hash .addBytes (file_path );
@@ -486,8 +486,8 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void {
486486 .bytes = > | bytes | {
487487 man .hash .addBytes (bytes );
488488 },
489- .file_source = > | file_source | {
490- const file_path = file_source .getPath (b );
489+ .lazy_path = > | lazy_path | {
490+ const file_path = lazy_path .getPath (b );
491491 _ = try man .addFile (file_path , null );
492492 },
493493 .none = > {},
@@ -1186,8 +1186,8 @@ fn evalGeneric(self: *Run, child: *std.process.Child) !StdIoResult {
11861186 child .stdin .? .close ();
11871187 child .stdin = null ;
11881188 },
1189- .file_source = > | file_source | {
1190- const path = file_source .getPath (self .step .owner );
1189+ .lazy_path = > | lazy_path | {
1190+ const path = lazy_path .getPath (self .step .owner );
11911191 const file = self .step .owner .build_root .handle .openFile (path , .{}) catch | err | {
11921192 return self .step .fail ("unable to open stdin file: {s}" , .{@errorName (err )});
11931193 };
0 commit comments