| ... | @@ -2532,8 +2532,8 @@ pub const DynamicLinker = struct { | ... | @@ -2532,8 +2532,8 @@ pub const DynamicLinker = struct { |
| 2532 | /// the ABI; it does not necessarily mean that `abi` makes any sense at all for that platform. | 2532 | /// the ABI; it does not necessarily mean that `abi` makes any sense at all for that platform. |
| 2533 | /// The responsibility for determining whether `abi` is valid in this case rests with the | 2533 | /// The responsibility for determining whether `abi` is valid in this case rests with the |
| 2534 | /// caller. `Abi.default()` can be used to pick a best-effort default ABI for such platforms. | 2534 | /// caller. `Abi.default()` can be used to pick a best-effort default ABI for such platforms. |
| 2535 | pub fn standard(cpu: Cpu, os: Os, abi: Abi) DynamicLinker { | 2535 | pub fn standard(cpu: Cpu, os: Os.Tag, abi: Abi) DynamicLinker { |
| 2536 | return switch (os.tag) { | 2536 | return switch (os) { |
| 2537 | .fuchsia => switch (cpu.arch) { | 2537 | .fuchsia => switch (cpu.arch) { |
| 2538 | .arm, | 2538 | .arm, |
| 2539 | .aarch64, | 2539 | .aarch64, |
| ... | @@ -2833,12 +2833,7 @@ pub const DynamicLinker = struct { | ... | @@ -2833,12 +2833,7 @@ pub const DynamicLinker = struct { |
| 2833 | else => none, | 2833 | else => none, |
| 2834 | }, | 2834 | }, |
| 2835 | | 2835 | |
| 2836 | .dragonfly => if (cpu.arch == .x86_64) initFmt("{s}/libexec/ld-elf.so.2", .{ | 2836 | .dragonfly => if (cpu.arch == .x86_64) init("/libexec/ld-elf.so.2") else none, |
| 2837 | if (os.version_range.semver.isAtLeast(.{ .major = 3, .minor = 8, .patch = 0 }) orelse false) | | |
| 2838 | "" | | |
| 2839 | else | | |
| 2840 | "/usr", | | |
| 2841 | }) else none, | | |
| 2842 | | 2837 | |
| 2843 | .freebsd => switch (cpu.arch) { | 2838 | .freebsd => switch (cpu.arch) { |
| 2844 | .arm, | 2839 | .arm, |
| ... | @@ -2849,12 +2844,7 @@ pub const DynamicLinker = struct { | ... | @@ -2849,12 +2844,7 @@ pub const DynamicLinker = struct { |
| 2849 | .riscv64, | 2844 | .riscv64, |
| 2850 | .x86, | 2845 | .x86, |
| 2851 | .x86_64, | 2846 | .x86_64, |
| 2852 | => initFmt("{s}/libexec/ld-elf.so.1", .{ | 2847 | => init("/libexec/ld-elf.so.1"), |
| 2853 | if (os.version_range.semver.isAtLeast(.{ .major = 6, .minor = 0, .patch = 0 }) orelse false) | | |
| 2854 | "" | | |
| 2855 | else | | |
| 2856 | "/usr", | | |
| 2857 | }), | | |
| 2858 | else => none, | 2848 | else => none, |
| 2859 | }, | 2849 | }, |
| 2860 | | 2850 | |
| ... | @@ -2968,7 +2958,7 @@ pub const DynamicLinker = struct { | ... | @@ -2968,7 +2958,7 @@ pub const DynamicLinker = struct { |
| 2968 | }; | 2958 | }; |
| 2969 | | 2959 | |
| 2970 | pub fn standardDynamicLinkerPath(target: *const Target) DynamicLinker { | 2960 | pub fn standardDynamicLinkerPath(target: *const Target) DynamicLinker { |
| 2971 | return DynamicLinker.standard(target.cpu, target.os, target.abi); | 2961 | return DynamicLinker.standard(target.cpu, target.os.tag, target.abi); |
| 2972 | } | 2962 | } |
| 2973 | | 2963 | |
| 2974 | pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 { | 2964 | pub fn ptrBitWidth_cpu_abi(cpu: Cpu, abi: Abi) u16 { |