| ... | ... | @@ -5921,6 +5921,14 @@ pub fn addCCArgs( |
| 5921 | 5921 | // symbols would be inconsistent with header declarations. |
| 5922 | 5922 | min_ver.major * 100_000, |
| 5923 | 5923 | })); |
| 5924 | } else if (target.isNetBSDLibC()) { |
| 5925 | const min_ver = target.os.version_range.semver.min; |
| 5926 | try argv.append(try std.fmt.allocPrint(arena, "-D__NetBSD_Version__={d}", .{ |
| 5927 | // We don't currently respect the patch component. This wouldn't be particularly helpful because |
| 5928 | // our abilists file only tracks major and minor NetBSD releases, so the link-time stub symbols |
| 5929 | // would be inconsistent with header declarations. |
| 5930 | (min_ver.major * 100_000_000) + (min_ver.minor * 1_000_000), |
| 5931 | })); |
| 5924 | 5932 | } |
| 5925 | 5933 | } |
| 5926 | 5934 | |