authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-05-14 18:41:16+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-14 15:22:22-04:00
log193a92630170582c8c7b28432c8a65a80e6ef0b3
treea80f02feddf907f27d72878a30e5cd8f9ca095b3
parent826d833416be0fa696cbe8785173997338e185bb

stage2: Force Clang to use LLVM's assembler for SPARC targets

This change allows cross-compiling C code for SPARC, if you hit any error with the internal assembler please open a ticket.

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

src/Compilation.zig+6
......@@ -2695,6 +2695,12 @@ pub fn addCCArgs(
26952695 try argv.appendSlice(&[_][]const u8{ "-MD", "-MV", "-MF", p });
26962696 }
26972697
2698 if (target.cpu.arch.isSPARC()) {
2699 // Clang defaults to using the system assembler over the internal one
2700 // when targeting a non-BSD OS.
2701 try argv.append("-integrated-as");
2702 }
2703
26982704 if (target.os.tag == .freestanding) {
26992705 try argv.append("-ffreestanding");
27002706 }