File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ pub const Platform = @import("platform/sdk.zig");
55const AvailableDep = struct { []const u8 , []const u8 };
66const AvailableDeps = []const AvailableDep ;
77
8+ fn runStep (step : * std.Build.Step , node : * std.Progress.Node ) ! void {
9+ for (step .dependencies .items ) | child | {
10+ var childNode = node .start (child .name , child .dependencies .items .len );
11+ defer childNode .end ();
12+
13+ try runStep (child , & childNode );
14+ }
15+
16+ try step .make (node );
17+ }
18+
819pub const ModuleImport = struct {
920 name : []const u8 ,
1021 source : []const u8 ,
@@ -30,7 +41,7 @@ pub const ModuleImport = struct {
3041 var node = prog .start (name , 1 );
3142 defer node .end ();
3243
33- try module .root_source_file .? .generated .step . make ( node );
44+ try runStep ( module .root_source_file .? .generated .step , node );
3445 }
3546
3647 return .{
You can’t perform that action at this time.
0 commit comments