| author | |
| committer | |
| log | 16b87f708212850a9ebcda3d91d7ce675ec78fa1 |
| tree | 4d3ee7025e4b2805c9df95a77b38e0d95da47431 |
| parent | 33715cb28f5cc73339798048c4e3a2737c72c68f |
| signature |
* AIX has its own bespoke format.
* Handle all Apple platforms.
* FreeBSD and OpenBSD both use the GNU format in LLVM.
* Windows has since been switched to the COFF format by default in LLVM.1 files changed, 3 insertions(+), 5 deletions(-)
src/link.zig+3-5| ... | ... | @@ -1214,11 +1214,9 @@ pub const File = struct { |
| 1214 | 1214 | object_files.items.ptr, |
| 1215 | 1215 | object_files.items.len, |
| 1216 | 1216 | switch (target.os.tag) { |
| 1217 | .linux => .GNU, | |
| 1218 | .freebsd, .openbsd => .BSD, | |
| 1219 | .macos, .ios => .DARWIN, | |
| 1220 | .windows => .GNU, | |
| 1221 | else => .GNU, | |
| 1217 | .aix => .AIXBIG, | |
| 1218 | .windows => .COFF, | |
| 1219 | else => if (target.os.tag.isDarwin()) .DARWIN else .GNU, | |
| 1222 | 1220 | }, |
| 1223 | 1221 | ); |
| 1224 | 1222 | if (bad) return error.UnableToWriteArchive; |