mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
build.zig: Also set code model for loongarch32.
This issue applies to both loongarch32 and loongarch64.
This commit is contained in:
parent
4894ac4bcb
commit
1f95e3d9cd
@ -667,11 +667,11 @@ fn addCompilerStep(b: *std.Build, options: AddCompilerStepOptions) *std.Build.St
|
||||
//
|
||||
// relocation R_LARCH_B26 out of range
|
||||
//
|
||||
// error when linking a loongarch64 zig binary.
|
||||
// error when linking a loongarch32/loongarch64 zig binary.
|
||||
//
|
||||
// Here we explicitly set code model to `medium' to avoid this
|
||||
// error.
|
||||
.loongarch64 => .medium,
|
||||
.loongarch32, .loongarch64 => .medium,
|
||||
else => .default,
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user