Skip to content

Commit

Permalink
Compilation: Work around llvm/llvm-project#105972 by defining the mac…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Aug 31, 2024
1 parent 7809567 commit f5e1c1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5761,6 +5761,13 @@ pub fn addCCArgs(
});
}

// https://github.com/llvm/llvm-project/issues/105972
if (target.cpu.arch.isPowerPC() and target.floatAbi() == .soft) {
try argv.append("-D__NO_FPRS__");
try argv.append("-D_SOFT_FLOAT");
try argv.append("-D_SOFT_DOUBLE");
}

if (out_dep_path) |p| {
try argv.appendSlice(&[_][]const u8{ "-MD", "-MV", "-MF", p });
}
Expand Down

0 comments on commit f5e1c1d

Please sign in to comment.