Skip to content

Commit f945551

Browse files
committed
Compilation: Work around llvm/llvm-project#105972 by defining the macros.
llvm/llvm-project#105972
1 parent 77c8f4b commit f945551

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Compilation.zig

+7
Original file line numberDiff line numberDiff line change
@@ -5765,6 +5765,13 @@ pub fn addCCArgs(
57655765
try argv.append("-mno-implicit-float");
57665766
}
57675767

5768+
// https://github.com/llvm/llvm-project/issues/105972
5769+
if (target.cpu.arch.isPowerPC() and target.floatAbi() == .soft) {
5770+
try argv.append("-D__NO_FPRS__");
5771+
try argv.append("-D_SOFT_FLOAT");
5772+
try argv.append("-D_SOFT_DOUBLE");
5773+
}
5774+
57685775
if (out_dep_path) |p| {
57695776
try argv.appendSlice(&[_][]const u8{ "-MD", "-MV", "-MF", p });
57705777
}

0 commit comments

Comments
 (0)