| ... | @@ -1352,11 +1352,14 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1352,11 +1352,14 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1352 | }); | 1352 | }); |
| 1353 | } else null; | 1353 | } else null; |
| 1354 | | 1354 | |
| 1355 | try main_mod.deps.put(gpa, "builtin", builtin_mod); | 1355 | { |
| 1356 | try main_mod.deps.put(gpa, "root", root_mod); | 1356 | try main_mod.deps.ensureUnusedCapacity(arena, 4); |
| 1357 | try main_mod.deps.put(gpa, "std", std_mod); | 1357 | main_mod.deps.putAssumeCapacity("builtin", builtin_mod); |
| 1358 | if (compiler_rt_mod) |m| | 1358 | main_mod.deps.putAssumeCapacity("root", root_mod); |
| 1359 | try main_mod.deps.put(gpa, "compiler_rt", m); | 1359 | main_mod.deps.putAssumeCapacity("std", std_mod); |
| | 1360 | if (compiler_rt_mod) |m| |
| | 1361 | main_mod.deps.putAssumeCapacity("compiler_rt", m); |
| | 1362 | } |
| 1360 | | 1363 | |
| 1361 | // Pre-open the directory handles for cached ZIR code so that it does not need | 1364 | // Pre-open the directory handles for cached ZIR code so that it does not need |
| 1362 | // to redundantly happen for each AstGen operation. | 1365 | // to redundantly happen for each AstGen operation. |