mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Target: Prune dead targets in Abi.default() and DynamicLinker.standard().
This commit is contained in:
parent
35f30558ad
commit
d3e8541268
1 changed files with 8 additions and 28 deletions
|
|
@ -838,7 +838,6 @@ pub const Abi = enum {
|
||||||
.aix => if (arch == .powerpc) .eabihf else .none,
|
.aix => if (arch == .powerpc) .eabihf else .none,
|
||||||
.haiku => switch (arch) {
|
.haiku => switch (arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.thumb,
|
|
||||||
.powerpc,
|
.powerpc,
|
||||||
=> .eabihf,
|
=> .eabihf,
|
||||||
else => .none,
|
else => .none,
|
||||||
|
|
@ -877,22 +876,13 @@ pub const Abi = enum {
|
||||||
},
|
},
|
||||||
.freebsd => switch (arch) {
|
.freebsd => switch (arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.armeb,
|
|
||||||
.thumb,
|
|
||||||
.thumbeb,
|
|
||||||
.powerpc,
|
.powerpc,
|
||||||
=> .eabihf,
|
=> .eabihf,
|
||||||
// Soft float tends to be more common for MIPS.
|
|
||||||
.mips,
|
|
||||||
.mipsel,
|
|
||||||
=> .eabi,
|
|
||||||
else => .none,
|
else => .none,
|
||||||
},
|
},
|
||||||
.netbsd => switch (arch) {
|
.netbsd => switch (arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.armeb,
|
.armeb,
|
||||||
.thumb,
|
|
||||||
.thumbeb,
|
|
||||||
.powerpc,
|
.powerpc,
|
||||||
=> .eabihf,
|
=> .eabihf,
|
||||||
// Soft float tends to be more common for MIPS.
|
// Soft float tends to be more common for MIPS.
|
||||||
|
|
@ -903,7 +893,6 @@ pub const Abi = enum {
|
||||||
},
|
},
|
||||||
.openbsd => switch (arch) {
|
.openbsd => switch (arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.thumb,
|
|
||||||
=> .eabi,
|
=> .eabi,
|
||||||
.powerpc,
|
.powerpc,
|
||||||
=> .eabihf,
|
=> .eabihf,
|
||||||
|
|
@ -2209,7 +2198,6 @@ pub const DynamicLinker = struct {
|
||||||
|
|
||||||
.haiku => switch (cpu.arch) {
|
.haiku => switch (cpu.arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.thumb,
|
|
||||||
.aarch64,
|
.aarch64,
|
||||||
.m68k,
|
.m68k,
|
||||||
.powerpc,
|
.powerpc,
|
||||||
|
|
@ -2238,9 +2226,7 @@ pub const DynamicLinker = struct {
|
||||||
|
|
||||||
.linux => if (abi.isAndroid())
|
.linux => if (abi.isAndroid())
|
||||||
switch (cpu.arch) {
|
switch (cpu.arch) {
|
||||||
.arm,
|
.arm => if (abi == .androideabi) init("/system/bin/linker") else none,
|
||||||
.thumb,
|
|
||||||
=> if (abi == .androideabi) init("/system/bin/linker") else none,
|
|
||||||
|
|
||||||
.aarch64,
|
.aarch64,
|
||||||
.riscv64,
|
.riscv64,
|
||||||
|
|
@ -2458,19 +2444,11 @@ pub const DynamicLinker = struct {
|
||||||
|
|
||||||
.freebsd => switch (cpu.arch) {
|
.freebsd => switch (cpu.arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.armeb,
|
|
||||||
.thumb,
|
|
||||||
.thumbeb,
|
|
||||||
.aarch64,
|
.aarch64,
|
||||||
.mips,
|
|
||||||
.mipsel,
|
|
||||||
.mips64,
|
|
||||||
.mips64el,
|
|
||||||
.powerpc,
|
.powerpc,
|
||||||
.powerpc64,
|
.powerpc64,
|
||||||
.powerpc64le,
|
.powerpc64le,
|
||||||
.riscv64,
|
.riscv64,
|
||||||
.sparc64,
|
|
||||||
.x86,
|
.x86,
|
||||||
.x86_64,
|
.x86_64,
|
||||||
=> initFmt("{s}/libexec/ld-elf.so.1", .{
|
=> initFmt("{s}/libexec/ld-elf.so.1", .{
|
||||||
|
|
@ -2485,8 +2463,6 @@ pub const DynamicLinker = struct {
|
||||||
.netbsd => switch (cpu.arch) {
|
.netbsd => switch (cpu.arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.armeb,
|
.armeb,
|
||||||
.thumb,
|
|
||||||
.thumbeb,
|
|
||||||
.aarch64,
|
.aarch64,
|
||||||
.aarch64_be,
|
.aarch64_be,
|
||||||
.m68k,
|
.m68k,
|
||||||
|
|
@ -2506,7 +2482,6 @@ pub const DynamicLinker = struct {
|
||||||
|
|
||||||
.openbsd => switch (cpu.arch) {
|
.openbsd => switch (cpu.arch) {
|
||||||
.arm,
|
.arm,
|
||||||
.thumb,
|
|
||||||
.aarch64,
|
.aarch64,
|
||||||
.mips64,
|
.mips64,
|
||||||
.mips64el,
|
.mips64el,
|
||||||
|
|
@ -2534,11 +2509,16 @@ pub const DynamicLinker = struct {
|
||||||
},
|
},
|
||||||
|
|
||||||
.illumos,
|
.illumos,
|
||||||
|
=> switch (cpu.arch) {
|
||||||
|
.x86,
|
||||||
|
.x86_64,
|
||||||
|
=> initFmt("/lib/{s}ld.so.1", .{if (ptrBitWidth_cpu_abi(cpu, .none) == 64) "64/" else ""}),
|
||||||
|
else => none,
|
||||||
|
},
|
||||||
|
|
||||||
.solaris,
|
.solaris,
|
||||||
=> switch (cpu.arch) {
|
=> switch (cpu.arch) {
|
||||||
.sparc,
|
|
||||||
.sparc64,
|
.sparc64,
|
||||||
.x86,
|
|
||||||
.x86_64,
|
.x86_64,
|
||||||
=> initFmt("/lib/{s}ld.so.1", .{if (ptrBitWidth_cpu_abi(cpu, .none) == 64) "64/" else ""}),
|
=> initFmt("/lib/{s}ld.so.1", .{if (ptrBitWidth_cpu_abi(cpu, .none) == 64) "64/" else ""}),
|
||||||
else => none,
|
else => none,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue