mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 09:33:18 +00:00
Compilation: Work around llvm/llvm-project#105972 by defining the macros.
https://github.com/llvm/llvm-project/issues/105972
This commit is contained in:
parent
77c8f4b671
commit
f9455511fa
@ -5765,6 +5765,13 @@ pub fn addCCArgs(
|
||||
try argv.append("-mno-implicit-float");
|
||||
}
|
||||
|
||||
// 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 });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user