fix: print targets
This commit is contained in:
@@ -99,8 +99,9 @@ pub fn cmdTargets(
|
||||
for (arch.allCpuModels()) |model| {
|
||||
try jws.objectField(model.name);
|
||||
try jws.beginArray();
|
||||
for (arch.allFeaturesList(), 0..) |feature, i| {
|
||||
if (model.features.isEnabled(@intCast(u8, i))) {
|
||||
for (arch.allFeaturesList(), 0..) |feature, i_usize| {
|
||||
const index = @intCast(Target.Cpu.Feature.Set.Index, i_usize);
|
||||
if (model.features.isEnabled(index)) {
|
||||
try jws.arrayElem();
|
||||
try jws.emitString(feature.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user