mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
compiler: remove medium code model workaround for loongarch64
The default was changed in LLVM 21.
This commit is contained in:
parent
e4f38a611f
commit
907b5b73b4
1 changed files with 1 additions and 5 deletions
|
|
@ -237,11 +237,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module {
|
||||||
const code_model: std.builtin.CodeModel = b: {
|
const code_model: std.builtin.CodeModel = b: {
|
||||||
if (options.inherited.code_model) |x| break :b x;
|
if (options.inherited.code_model) |x| break :b x;
|
||||||
if (options.parent) |p| break :b p.code_model;
|
if (options.parent) |p| break :b p.code_model;
|
||||||
break :b switch (target.cpu.arch) {
|
break :b .default;
|
||||||
// Temporary workaround until LLVM 21: https://github.com/llvm/llvm-project/pull/132173
|
|
||||||
.loongarch64 => .medium,
|
|
||||||
else => .default,
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const is_safe_mode = switch (optimize_mode) {
|
const is_safe_mode = switch (optimize_mode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue