| ... | ... | @@ -989,10 +989,10 @@ fn getGeneratedFilePath(compile: *Compile, comptime tag_name: []const u8, asking |
| 989 | 989 | return path; |
| 990 | 990 | } |
| 991 | 991 | |
| 992 | | fn make(step: *Step, prog_node: std.Progress.Node) !void { |
| 992 | fn getZigArgs(compile: *Compile) ![][]const u8 { |
| 993 | const step = &compile.step; |
| 993 | 994 | const b = step.owner; |
| 994 | 995 | const arena = b.allocator; |
| 995 | | const compile: *Compile = @fieldParentPtr("step", step); |
| 996 | 996 | |
| 997 | 997 | var zig_args = ArrayList([]const u8).init(arena); |
| 998 | 998 | defer zig_args.deinit(); |
| ... | ... | @@ -1298,6 +1298,7 @@ fn make(step: *Step, prog_node: std.Progress.Node) !void { |
| 1298 | 1298 | // We need to emit the --mod argument here so that the above link objects |
| 1299 | 1299 | // have the correct parent module, but only if the module is part of |
| 1300 | 1300 | // this compilation. |
| 1301 | if (!my_responsibility) continue; |
| 1301 | 1302 | if (cli_named_modules.modules.getIndex(dep.module)) |module_cli_index| { |
| 1302 | 1303 | const module_cli_name = cli_named_modules.names.keys()[module_cli_index]; |
| 1303 | 1304 | try dep.module.appendZigProcessFlags(&zig_args, step); |
| ... | ... | @@ -1724,7 +1725,16 @@ fn make(step: *Step, prog_node: std.Progress.Node) !void { |
| 1724 | 1725 | try zig_args.append(resolved_args_file); |
| 1725 | 1726 | } |
| 1726 | 1727 | |
| 1727 | | const maybe_output_bin_path = step.evalZigProcess(zig_args.items, prog_node) catch |err| switch (err) { |
| 1728 | return try zig_args.toOwnedSlice(); |
| 1729 | } |
| 1730 | |
| 1731 | fn make(step: *Step, prog_node: std.Progress.Node) !void { |
| 1732 | const b = step.owner; |
| 1733 | const compile: *Compile = @fieldParentPtr("step", step); |
| 1734 | |
| 1735 | const zig_args = try getZigArgs(compile); |
| 1736 | |
| 1737 | const maybe_output_bin_path = step.evalZigProcess(zig_args, prog_node) catch |err| switch (err) { |
| 1728 | 1738 | error.NeedCompileErrorCheck => { |
| 1729 | 1739 | assert(compile.expect_errors != null); |
| 1730 | 1740 | try checkCompileErrors(compile); |