diff --git a/lib/std/Target.zig b/lib/std/Target.zig index b6bc13e4f6de3509be5c144d6cdd4fe1e0c44218..58c7cb58beea01defdc340fd3ea23d674adb9a12 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -1245,6 +1245,9 @@ pub const Cpu = struct { dependencies: Set, /// A bit set of all the features. + /// + /// The typed features for a given `Target.Cpu.Arch` can be found in + /// `@field(Target, @tagName(arch.family()))`. pub const Set = struct { ints: [usize_count]usize, diff --git a/lib/std/Target/Query.zig b/lib/std/Target/Query.zig index b889354c5e68d15c1ddc86d825877cb68b8d4632..bc034dc9fa6e66472128cf0f2df565e66a371e51 100644 --- a/lib/std/Target/Query.zig +++ b/lib/std/Target/Query.zig @@ -18,9 +18,19 @@ cpu_arch: ?Target.Cpu.Arch = null, cpu_model: CpuModel = .determined_by_arch_os, /// Sparse set of CPU features to add to the set from `cpu_model`. +/// +/// The typed features for a given `Target.Cpu.Arch` can be found in +/// `@field(Target, @tagName(arch.family()))`. +/// +/// For example, `std.Target.x86.cpu.x86_64_v3.features` or `std.Target.s390x.cpu.z13.features`. cpu_features_add: Target.Cpu.Feature.Set = .empty, /// Sparse set of CPU features to remove from the set from `cpu_model`. +/// +/// The typed features for a given `Target.Cpu.Arch` can be found in +/// `@field(Target, @tagName(arch.family()))`. +/// +/// For example, `std.Target.x86.cpu.x86_64_v3.features` or `std.Target.s390x.cpu.z13.features`. cpu_features_sub: Target.Cpu.Feature.Set = .empty, /// `null` means native.