aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-12-18 17:10:28 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 17:51:20 -0700
commitfe87bae7e39657c96015aa7f3c7a35a0b01da1ad (patch)
tree1f5bfe4101613eebe88713d0ba7d8cba3c0f8b79 /src/main.zig
parent90cc408c1479e5e7ccd82369253d19f79d2812a5 (diff)
downloadzig-fe87bae7e39657c96015aa7f3c7a35a0b01da1ad.tar.gz
zig-fe87bae7e39657c96015aa7f3c7a35a0b01da1ad.zip
frontend: fix handling of special builtin module
it's allocated differently and imported differently
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/main.zig b/src/main.zig
index 3b3eb8941e..3f5eab801b 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -2662,23 +2662,7 @@ fn buildOutputType(
const std_mod = m: {
if (main_mod_is_std) break :m main_mod;
if (create_module.modules.get("std")) |cli_mod| break :m cli_mod.resolved.?;
-
- break :m try Package.Module.create(arena, .{
- .global_cache_directory = global_cache_directory,
- .paths = .{
- .root = .{
- .root_dir = zig_lib_directory,
- .sub_path = "std",
- },
- .root_src_path = "std.zig",
- },
- .fully_qualified_name = "std",
- .cc_argv = &.{},
- .inherited = .{},
- .global = create_module.resolved_options,
- .parent = main_mod,
- .builtin_mod = main_mod.getBuiltinDependency(),
- });
+ break :m null;
};
const root_mod = if (arg_mode == .zig_test) root_mod: {