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 bd3e248 commit 23ac4ddCopy full SHA for 23ac4dd
src/print_targets.zig
@@ -99,8 +99,9 @@ pub fn cmdTargets(
99
for (arch.allCpuModels()) |model| {
100
try jws.objectField(model.name);
101
try jws.beginArray();
102
- for (arch.allFeaturesList(), 0..) |feature, i| {
103
- if (model.features.isEnabled(@intCast(u8, i))) {
+ for (arch.allFeaturesList(), 0..) |feature, i_usize| {
+ const index = @intCast(Target.Cpu.Feature.Set.Index, i_usize);
104
+ if (model.features.isEnabled(index)) {
105
try jws.arrayElem();
106
try jws.emitString(feature.name);
107
}
0 commit comments