We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36d483 commit e20fb70Copy full SHA for e20fb70
src/Compilation.zig
@@ -5921,6 +5921,14 @@ pub fn addCCArgs(
5921
// symbols would be inconsistent with header declarations.
5922
min_ver.major * 100_000,
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
+ }));
5932
}
5933
5934
0 commit comments