Skip to content

Commit a9fc6f4

Browse files
committed
compiler: remove medium code model workaround for loongarch64
The default was changed in LLVM 21.
1 parent 5284a47 commit a9fc6f4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Package/Module.zig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module {
237237
const code_model: std.builtin.CodeModel = b: {
238238
if (options.inherited.code_model) |x| break :b x;
239239
if (options.parent) |p| break :b p.code_model;
240-
break :b switch (target.cpu.arch) {
241-
// Temporary workaround until LLVM 21: https://github.com/llvm/llvm-project/pull/132173
242-
.loongarch64 => .medium,
243-
else => .default,
244-
};
240+
break :b .default;
245241
};
246242

247243
const is_safe_mode = switch (optimize_mode) {

0 commit comments

Comments
 (0)