diff options
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 539a11faa0..798fbc9a4c 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1325,6 +1325,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil .global = options.config, .parent = options.root_mod, .builtin_mod = options.root_mod.getBuiltinDependency(), + .builtin_modules = null, // `builtin_mod` is set }); try options.root_mod.deps.putNoClobber(arena, "compiler_rt", compiler_rt_mod); } @@ -1429,6 +1430,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil .global = options.config, .parent = options.root_mod, .builtin_mod = options.root_mod.getBuiltinDependency(), + .builtin_modules = null, // `builtin_mod` is set }); const zcu = try arena.create(Module); @@ -6104,6 +6106,7 @@ fn buildOutputFromZig( .cc_argv = &.{}, .parent = null, .builtin_mod = null, + .builtin_modules = null, // there is only one module in this compilation }); const root_name = src_basename[0 .. src_basename.len - std.fs.path.extension(src_basename).len]; const target = comp.getTarget(); @@ -6216,6 +6219,7 @@ pub fn build_crt_file( .cc_argv = &.{}, .parent = null, .builtin_mod = null, + .builtin_modules = null, // there is only one module in this compilation }); for (c_source_files) |*item| { |
