zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 907b5b73b4397bbe7717c27f8935fadb57f91ee4 (tree)
parent e4f38a611f1ba669434d52e753ae2c729911eead
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Sat,  2 Aug 2025 21:02:33 +0200

compiler: remove medium code model workaround for loongarch64

The default was changed in LLVM 21.

Diffstat:
Msrc/Package/Module.zig | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/Package/Module.zig b/src/Package/Module.zig @@ -237,11 +237,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module { const code_model: std.builtin.CodeModel = b: { if (options.inherited.code_model) |x| break :b x; if (options.parent) |p| break :b p.code_model; - break :b switch (target.cpu.arch) { - // Temporary workaround until LLVM 21: https://github.com/llvm/llvm-project/pull/132173 - .loongarch64 => .medium, - else => .default, - }; + break :b .default; }; const is_safe_mode = switch (optimize_mode) {