main: Give a more helpful message when we have a minimum glibc version.

This commit is contained in:
Alex Rønne Petersen 2024-08-02 09:22:57 +02:00
parent 2e26cf83cf
commit c339aa655e
No known key found for this signature in database

View File

@ -3412,6 +3412,14 @@ fn buildOutputType(
std.log.info("zig can provide libc for related target {s}-{s}.{d}-{s}", .{
@tagName(t.arch), @tagName(t.os), os_ver.major, @tagName(t.abi),
});
} else if (t.glibc_min) |glibc_min| {
std.log.info("zig can provide libc for related target {s}-{s}-{s}.{d}.{d}", .{
@tagName(t.arch),
@tagName(t.os),
@tagName(t.abi),
glibc_min.major,
glibc_min.minor,
});
} else {
std.log.info("zig can provide libc for related target {s}-{s}-{s}", .{
@tagName(t.arch), @tagName(t.os), @tagName(t.abi),