| ... | @@ -1627,10 +1627,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1627,10 +1627,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1627 | const pkg = try Package.create(gpa, "root", test_dir, basename); | 1627 | const pkg = try Package.create(gpa, "root", test_dir, basename); |
| 1628 | | 1628 | |
| 1629 | // copy package table from main_pkg to root_pkg | 1629 | // copy package table from main_pkg to root_pkg |
| 1630 | var iter = main_pkg.table.valueIterator(); | 1630 | pkg.table = try main_pkg.table.clone(gpa); |
| 1631 | while (iter.next()) |v| { | | |
| 1632 | try pkg.add(gpa, v.*); | | |
| 1633 | } | | |
| 1634 | break :test_pkg pkg; | 1631 | break :test_pkg pkg; |
| 1635 | } else try Package.createWithDir( | 1632 | } else try Package.createWithDir( |
| 1636 | gpa, | 1633 | gpa, |