From 02acde99a142e89c30d0e49cc703d0ad80ea31b7 Mon Sep 17 00:00:00 2001 From: Meghan Date: Tue, 14 Jun 2022 14:36:19 -0700 Subject: stage2: ensure 'std', 'builtin', and 'root' is always available to `@import` --- src/Sema.zig | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/Sema.zig') diff --git a/src/Sema.zig b/src/Sema.zig index ad8beff0f3..ac9e24a9be 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -4674,10 +4674,6 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr error.OutOfMemory => return error.OutOfMemory, else => unreachable, // we pass null for root_src_dir_path }; - const std_pkg = mod.main_pkg.table.get("std").?; - const builtin_pkg = mod.main_pkg.table.get("builtin").?; - try c_import_pkg.add(sema.gpa, "builtin", builtin_pkg); - try c_import_pkg.add(sema.gpa, "std", std_pkg); const result = mod.importPkg(c_import_pkg) catch |err| return sema.fail(&child_block, src, "C import failed: {s}", .{@errorName(err)}); -- cgit v1.2.3