| author | |
| committer | |
| log | 193a92630170582c8c7b28432c8a65a80e6ef0b3 |
| tree | a80f02feddf907f27d72878a30e5cd8f9ca095b3 |
| parent | 826d833416be0fa696cbe8785173997338e185bb |
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( |
| 2695 | 2695 | try argv.appendSlice(&[_][]const u8{ "-MD", "-MV", "-MF", p }); |
| 2696 | 2696 | } |
| 2697 | 2697 | |
| 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 | ||
| 2698 | 2704 | if (target.os.tag == .freestanding) { |
| 2699 | 2705 | try argv.append("-ffreestanding"); |
| 2700 | 2706 | } |