| ... | ... | @@ -764,16 +764,17 @@ pub fn buildSharedObjects(comp: *Compilation) !void { |
| 764 | 764 | .lt => continue, |
| 765 | 765 | .gt => { |
| 766 | 766 | // TODO Expose via compile error mechanism instead of log. |
| 767 | | std.log.warn("invalid target glibc version: {}", .{target_version}); |
| 767 | std.log.err("invalid target glibc version: {}", .{target_version}); |
| 768 | 768 | return error.InvalidTargetGLibCVersion; |
| 769 | 769 | }, |
| 770 | 770 | } |
| 771 | | } else blk: { |
| 771 | } else { |
| 772 | 772 | const latest_index = metadata.all_versions.len - 1; |
| 773 | | std.log.warn("zig cannot build new glibc version {}; providing instead {}", .{ |
| 773 | // TODO Expose via compile error mechanism instead of log. |
| 774 | std.log.err("zig does not yet provide glibc version {}, the max provided version is {}", .{ |
| 774 | 775 | target_version, metadata.all_versions[latest_index], |
| 775 | 776 | }); |
| 776 | | break :blk latest_index; |
| 777 | return error.InvalidTargetGLibCVersion; |
| 777 | 778 | }; |
| 778 | 779 | { |
| 779 | 780 | var map_contents = std.ArrayList(u8).init(arena); |