Commit 7b1d2fa004

Alex Rønne Petersen <alex@alexrp.com>
2024-11-05 14:31:42
Compilation: Also set essential module options when including compiler-rt.o.
Closes #21831.
1 parent b578191
Changed files (1)
src/Compilation.zig
@@ -1298,7 +1298,11 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
                 },
                 .fully_qualified_name = "compiler_rt",
                 .cc_argv = &.{},
-                .inherited = .{},
+                .inherited = .{
+                    .stack_check = false,
+                    .stack_protector = 0,
+                    .no_builtin = true,
+                },
                 .global = options.config,
                 .parent = options.root_mod,
                 .builtin_mod = options.root_mod.getBuiltinDependency(),