musl: Fix needsCrtiCrtn() to return false for riscv32 too.

This commit is contained in:
Alex Rønne Petersen 2024-06-22 14:28:29 +02:00
parent 390c7d84b2
commit 11badbfe8e
No known key found for this signature in database

View File

@ -301,6 +301,7 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile, prog_node: std.Progre
pub fn needsCrtiCrtn(target: std.Target) bool {
// zig fmt: off
return switch (target.cpu.arch) {
.riscv32,
.riscv64,
.wasm32, .wasm64 => return false,
else => true,