authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-03-10 09:13:44+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-04 06:08:10+02:00
log9e4199d629b08318e9183312fba4531929f8b57b
tree3b682b3d4ed0c74f9f553666be69b4b7dbd4b571
parent28469636baf65c72e5bde083563ffd7ab1b6c26e
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Compilation: Remove the PowerPC soft float preprocessor workaround.

Closes #21411.

1 files changed, 0 insertions(+), 7 deletions(-)

src/Compilation.zig-7
...@@ -5741,13 +5741,6 @@ pub fn addCCArgs(...@@ -5741,13 +5741,6 @@ pub fn addCCArgs(
57415741
5742 // LLVM IR files don't support these flags.5742 // LLVM IR files don't support these flags.
5743 if (ext != .ll and ext != .bc) {5743 if (ext != .ll and ext != .bc) {
5744 // https://github.com/llvm/llvm-project/issues/105972
5745 if (target.cpu.arch.isPowerPC() and target.abi.float() == .soft) {
5746 try argv.append("-D__NO_FPRS__");
5747 try argv.append("-D_SOFT_FLOAT");
5748 try argv.append("-D_SOFT_DOUBLE");
5749 }
5750
5751 if (comp.config.link_libc) {5744 if (comp.config.link_libc) {
5752 if (target.isGnuLibC()) {5745 if (target.isGnuLibC()) {
5753 const target_version = target.os.versionRange().gnuLibCVersion().?;5746 const target_version = target.os.versionRange().gnuLibCVersion().?;