| ... | @@ -667,11 +667,11 @@ fn addCompilerStep(b: *std.Build, options: AddCompilerStepOptions) *std.Build.St | ... | @@ -667,11 +667,11 @@ fn addCompilerStep(b: *std.Build, options: AddCompilerStepOptions) *std.Build.St |
| 667 | // | 667 | // |
| 668 | // relocation R_LARCH_B26 out of range | 668 | // relocation R_LARCH_B26 out of range |
| 669 | // | 669 | // |
| 670 | // error when linking a loongarch64 zig binary. | 670 | // error when linking a loongarch32/loongarch64 zig binary. |
| 671 | // | 671 | // |
| 672 | // Here we explicitly set code model to `medium' to avoid this | 672 | // Here we explicitly set code model to `medium' to avoid this |
| 673 | // error. | 673 | // error. |
| 674 | .loongarch64 => .medium, | 674 | .loongarch32, .loongarch64 => .medium, |
| 675 | else => .default, | 675 | else => .default, |
| 676 | }, | 676 | }, |
| 677 | }); | 677 | }); |