| ... | ... | @@ -446,10 +446,14 @@ fn start_asm_path(comp: *Compilation, arena: *Allocator, basename: []const u8) ! |
| 446 | 446 | try result.appendSlice(comp.zig_lib_directory.path.?); |
| 447 | 447 | try result.appendSlice(s ++ "libc" ++ s ++ "glibc" ++ s ++ "sysdeps" ++ s); |
| 448 | 448 | if (is_sparc) { |
| 449 | | if (is_64) { |
| 450 | | try result.appendSlice("sparc" ++ s ++ "sparc64"); |
| 449 | if (mem.eql(u8, basename, "crti.S") or mem.eql(u8, basename, "crtn.S")) { |
| 450 | try result.appendSlice("sparc"); |
| 451 | 451 | } else { |
| 452 | | try result.appendSlice("sparc" ++ s ++ "sparc32"); |
| 452 | if (is_64) { |
| 453 | try result.appendSlice("sparc" ++ s ++ "sparc64"); |
| 454 | } else { |
| 455 | try result.appendSlice("sparc" ++ s ++ "sparc32"); |
| 456 | } |
| 453 | 457 | } |
| 454 | 458 | } else if (arch.isARM()) { |
| 455 | 459 | try result.appendSlice("arm"); |