We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a6236 commit 2116f2eCopy full SHA for 2116f2e
src/Compilation.zig
@@ -5775,7 +5775,10 @@ pub fn addCCArgs(
5775
5776
if (target_util.llvmMachineAbi(target)) |mabi| {
5777
// Clang's integrated Arm assembler doesn't support `-mabi` yet...
5778
- 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).
5779
+ if (!(target.cpu.arch.isArm() and (ext == .assembly or ext == .assembly_with_cpp)) and
5780
+ !(target.cpu.arch.isPowerPC64() and target.os.tag == .freebsd))
5781
+ {
5782
try argv.append(try std.fmt.allocPrint(arena, "-mabi={s}", .{mabi}));
5783
}
5784
0 commit comments