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