| ... | @@ -3550,21 +3550,28 @@ fn buildOutputType( | ... | @@ -3550,21 +3550,28 @@ fn buildOutputType( |
| 3550 | | 3550 | |
| 3551 | for (std.zig.target.available_libcs) |t| { | 3551 | for (std.zig.target.available_libcs) |t| { |
| 3552 | if (t.arch == target.cpu.arch and t.os == target.os.tag) { | 3552 | if (t.arch == target.cpu.arch and t.os == target.os.tag) { |
| 3553 | if (t.os_ver) |os_ver| { | 3553 | // If there's a `glibc_min`, there's also an `os_ver`. |
| 3554 | std.log.info("zig can provide libc for related target {s}-{s}.{d}-{s}", .{ | 3554 | if (t.glibc_min) |glibc_min| { |
| 3555 | @tagName(t.arch), @tagName(t.os), os_ver.major, @tagName(t.abi), | 3555 | std.log.info("zig can provide libc for related target {s}-{s}.{}-{s}.{d}.{d}", .{ |
| 3556 | }); | | |
| 3557 | } else if (t.glibc_min) |glibc_min| { | | |
| 3558 | std.log.info("zig can provide libc for related target {s}-{s}-{s}.{d}.{d}", .{ | | |
| 3559 | @tagName(t.arch), | 3556 | @tagName(t.arch), |
| 3560 | @tagName(t.os), | 3557 | @tagName(t.os), |
| | 3558 | t.os_ver.?, |
| 3561 | @tagName(t.abi), | 3559 | @tagName(t.abi), |
| 3562 | glibc_min.major, | 3560 | glibc_min.major, |
| 3563 | glibc_min.minor, | 3561 | glibc_min.minor, |
| 3564 | }); | 3562 | }); |
| | 3563 | } else if (t.os_ver) |os_ver| { |
| | 3564 | std.log.info("zig can provide libc for related target {s}-{s}.{}-{s}", .{ |
| | 3565 | @tagName(t.arch), |
| | 3566 | @tagName(t.os), |
| | 3567 | os_ver, |
| | 3568 | @tagName(t.abi), |
| | 3569 | }); |
| 3565 | } else { | 3570 | } else { |
| 3566 | std.log.info("zig can provide libc for related target {s}-{s}-{s}", .{ | 3571 | std.log.info("zig can provide libc for related target {s}-{s}-{s}", .{ |
| 3567 | @tagName(t.arch), @tagName(t.os), @tagName(t.abi), | 3572 | @tagName(t.arch), |
| | 3573 | @tagName(t.os), |
| | 3574 | @tagName(t.abi), |
| 3568 | }); | 3575 | }); |
| 3569 | } | 3576 | } |
| 3570 | } | 3577 | } |