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