| ... | ... | @@ -99,8 +99,9 @@ pub fn cmdTargets( |
| 99 | 99 | for (arch.allCpuModels()) |model| { |
| 100 | 100 | try jws.objectField(model.name); |
| 101 | 101 | try jws.beginArray(); |
| 102 | | for (arch.allFeaturesList(), 0..) |feature, i| { |
| 103 | | if (model.features.isEnabled(@intCast(u8, i))) { |
| 102 | for (arch.allFeaturesList(), 0..) |feature, i_usize| { |
| 103 | const index = @intCast(Target.Cpu.Feature.Set.Index, i_usize); |
| 104 | if (model.features.isEnabled(index)) { |
| 104 | 105 | try jws.arrayElem(); |
| 105 | 106 | try jws.emitString(feature.name); |
| 106 | 107 | } |