mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
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.
This commit is contained in:
parent
826d833416
commit
193a926301
@ -2695,6 +2695,12 @@ pub fn addCCArgs(
|
||||
try argv.appendSlice(&[_][]const u8{ "-MD", "-MV", "-MF", p });
|
||||
}
|
||||
|
||||
if (target.cpu.arch.isSPARC()) {
|
||||
// Clang defaults to using the system assembler over the internal one
|
||||
// when targeting a non-BSD OS.
|
||||
try argv.append("-integrated-as");
|
||||
}
|
||||
|
||||
if (target.os.tag == .freestanding) {
|
||||
try argv.append("-ffreestanding");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user