mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Compilation: Don't pass -mabi to Clang on powerpc64(le)-freebsd.
The driver doesn't support it, and FreeBSD 13+ on PPC64 uses ELFv2 anyway.
This commit is contained in:
parent
d3a6236eef
commit
2116f2e3b2
1 changed files with 4 additions and 1 deletions
|
|
@ -5775,7 +5775,10 @@ pub fn addCCArgs(
|
|||
|
||||
if (target_util.llvmMachineAbi(target)) |mabi| {
|
||||
// Clang's integrated Arm assembler doesn't support `-mabi` yet...
|
||||
if (!(target.cpu.arch.isArm() and (ext == .assembly or ext == .assembly_with_cpp))) {
|
||||
// Clang's FreeBSD driver doesn't support `-mabi` on PPC64 (ELFv2 is used anyway).
|
||||
if (!(target.cpu.arch.isArm() and (ext == .assembly or ext == .assembly_with_cpp)) and
|
||||
!(target.cpu.arch.isPowerPC64() and target.os.tag == .freebsd))
|
||||
{
|
||||
try argv.append(try std.fmt.allocPrint(arena, "-mabi={s}", .{mabi}));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue