Compilation: Also set essential module options when including compiler-rt.o.

Closes #21831.
This commit is contained in:
Alex Rønne Petersen 2024-11-05 14:31:42 +01:00
parent b57819118d
commit 7b1d2fa004
No known key found for this signature in database

View File

@ -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(),