mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Assembly file add soft float option for mips (#15340)
This commit is contained in:
parent
1617138c72
commit
e1cc70ba11
@ -4460,6 +4460,15 @@ pub fn addCCArgs(
|
||||
try argv.append("-mno-save-restore");
|
||||
}
|
||||
},
|
||||
.mips, .mipsel, .mips64, .mips64el => {
|
||||
if (target.cpu.model.llvm_name) |llvm_name| {
|
||||
try argv.append(try std.fmt.allocPrint(arena, "-march={s}", .{llvm_name}));
|
||||
}
|
||||
|
||||
if (std.Target.mips.featureSetHas(target.cpu.features, .soft_float)) {
|
||||
try argv.append("-msoft-float");
|
||||
}
|
||||
},
|
||||
else => {
|
||||
// TODO
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user