| ... | ... | @@ -524,7 +524,7 @@ fn addModule( |
| 524 | 524 | .link_libcpp = .init(m.strip), |
| 525 | 525 | .no_builtin = .init(m.strip), |
| 526 | 526 | }, |
| 527 | | .owner = builderToPackage(m.owner), |
| 527 | .owner = try builderToPackage(wc, m.owner), |
| 528 | 528 | .root_source_file = try addOptionalLazyPath(wc, m.root_source_file), |
| 529 | 529 | .import_table = import_table, |
| 530 | 530 | .resolved_target = try addOptionalResolvedTarget(wc, m.resolved_target), |
| ... | ... | @@ -555,7 +555,7 @@ fn addOptionalLazyPath(wc: *Configuration.Wip, lp: ?std.Build.LazyPath) !Configu |
| 555 | 555 | const sub_path = try wc.addString(src_path.sub_path); |
| 556 | 556 | break :i try wc.addExtra(@as(Configuration.LazyPath.SourcePath, .{ |
| 557 | 557 | .flags = .{}, |
| 558 | | .owner = builderToPackage(src_path.owner), |
| 558 | .owner = try builderToPackage(wc, src_path.owner), |
| 559 | 559 | .sub_path = sub_path, |
| 560 | 560 | })); |
| 561 | 561 | }, |
| ... | ... | @@ -577,16 +577,16 @@ fn addOptionalLazyPath(wc: *Configuration.Wip, lp: ?std.Build.LazyPath) !Configu |
| 577 | 577 | const sub_path = try wc.addString(dependency.sub_path); |
| 578 | 578 | break :i try wc.addExtra(@as(Configuration.LazyPath.SourcePath, .{ |
| 579 | 579 | .flags = .{}, |
| 580 | | .owner = builderToPackage(dependency.dependency.builder), |
| 580 | .owner = try builderToPackage(wc, dependency.dependency.builder), |
| 581 | 581 | .sub_path = sub_path, |
| 582 | 582 | })); |
| 583 | 583 | }, |
| 584 | 584 | }); |
| 585 | 585 | } |
| 586 | 586 | |
| 587 | | fn builderToPackage(b: *std.Build) Configuration.Package.Index { |
| 588 | | _ = b; |
| 589 | | @panic("TODO"); |
| 587 | fn builderToPackage(wc: *Configuration.Wip, b: *std.Build) !Configuration.Package { |
| 588 | if (b.pkg_hash.len == 0) return .root; |
| 589 | return .fromHash(try wc.addString(b.pkg_hash)); |
| 590 | 590 | } |
| 591 | 591 | |
| 592 | 592 | fn addInstallDir(wc: *Configuration.Wip, install_dir: ?std.Build.InstallDir) !Configuration.InstallDir { |