musl: Fix needsCrtiCrtn() for m68k.

This commit is contained in:
Alex Rønne Petersen 2024-10-16 04:09:41 +02:00
parent 243c25007f
commit 533d8ea771
No known key found for this signature in database

View File

@ -306,8 +306,13 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro
/// See lib/libc/musl/crt/ARCH/crt?.s .
pub fn needsCrtiCrtn(target: std.Target) bool {
return switch (target.cpu.arch) {
.riscv32, .riscv64, .wasm32, .wasm64 => false,
.loongarch64 => false,
.loongarch64,
.m68k,
.riscv32,
.riscv64,
.wasm32,
.wasm64,
=> false,
else => true,
};
}