authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-07 16:58:28+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-07 22:21:35+01:00
log1f95e3d9cd6bdd313536fb35beb46a09b4fd8834
treec44af02f8894687f6cb8d389e4c667f01ed27886
parent4894ac4bcb468d6e609fd66fe99bfa7a6b95cc3b

build.zig: Also set code model for loongarch32.

This issue applies to both loongarch32 and loongarch64.

1 files changed, 2 insertions(+), 2 deletions(-)

build.zig+2-2
...@@ -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 range668 // 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 this672 // 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 });