diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-05 14:31:42 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-05 14:43:02 +0100 |
| commit | 7b1d2fa004ef8b1f59ff0b54327f47bb98e18563 (patch) | |
| tree | 761955a8c2aac3be83ab9105afbf4e13771f66b5 | |
| parent | b57819118ddf287a135b4c2fb7182615b402fbc2 (diff) | |
| download | zig-7b1d2fa004ef8b1f59ff0b54327f47bb98e18563.tar.gz zig-7b1d2fa004ef8b1f59ff0b54327f47bb98e18563.zip | |
Compilation: Also set essential module options when including compiler-rt.o.
Closes #21831.
| -rw-r--r-- | src/Compilation.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 24ee899610..acf85f9fc1 100644 --- a/src/Compilation.zig +++ b/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(), |
