| ... | @@ -132,22 +132,20 @@ pub fn make( | ... | @@ -132,22 +132,20 @@ pub fn make( |
| 132 | const root_module = producer.root_module.get(conf); | 132 | const root_module = producer.root_module.get(conf); |
| 133 | const root_module_target = root_module.resolved_target.get(conf).?.result.get(conf); | 133 | const root_module_target = root_module.resolved_target.get(conf).?.result.get(conf); |
| 134 | const os_tag = root_module_target.flags.os_tag.unwrap().?; | 134 | const os_tag = root_module_target.flags.os_tag.unwrap().?; |
| 135 | | 135 | const producer_make_comp_step = maker.stepByIndex(producer_index); |
| 136 | if (true) @panic("TODO"); | 136 | const producer_make_comp = &producer_make_comp_step.extended.compile; |
| 137 | | 137 | |
| 138 | if (os_tag == .windows) { | 138 | if (os_tag == .windows) { |
| 139 | // On Windows we don't have rpaths so we have to add .dll search paths to PATH | 139 | // On Windows we don't have rpaths so we have to add .dll search paths to PATH |
| 140 | addPathForDynLibs(producer_index); | 140 | addPathForDynLibs(producer_index); |
| 141 | } | 141 | } |
| 142 | const file_path = producer_index.installed_path orelse producer_index.generated_bin.?.path.?; | 142 | const file_path = producer_make_comp.installed_path orelse maker.generatedPath(producer.generated_bin.value.?).*; |
| 143 | | 143 | |
| 144 | argv_list.appendAssumeCapacity(try mem.concat(arena, u8, &.{ | 144 | argv_list.appendAssumeCapacity(try mem.concat(arena, u8, &.{ |
| 145 | prefix, | 145 | prefix, try convertPathArg(run_index, maker, file_path), suffix, |
| 146 | try convertPathArg(run_index, maker, .{ .root_dir = .cwd(), .sub_path = file_path }), | | |
| 147 | suffix, | | |
| 148 | })); | 146 | })); |
| 149 | | 147 | |
| 150 | _ = try man.addFile(file_path, null); | 148 | _ = try man.addFilePath(file_path, null); |
| 151 | }, | 149 | }, |
| 152 | .output_file, .output_directory => { | 150 | .output_file, .output_directory => { |
| 153 | const prefix = if (arg.prefix.value) |p| p.slice(conf) else ""; | 151 | const prefix = if (arg.prefix.value) |p| p.slice(conf) else ""; |