| ... | ... | @@ -542,14 +542,14 @@ export fn stage2_list_features_for_arch(arch_name_ptr: [*]const u8, arch_name_le |
| 542 | 542 | fn printFeaturesForArch(arch_name: []const u8, show_dependencies: bool) !void { |
| 543 | 543 | const stdout_stream = &std.io.getStdOut().outStream().stream; |
| 544 | 544 | |
| 545 | | const arch = Target.parseArchTag(arch_name) catch { |
| 545 | const arch = Target.parseArchSub(arch_name) catch { |
| 546 | 546 | std.debug.warn("Failed to parse arch '{}'\nInvoke 'zig targets' for a list of valid architectures\n", .{arch_name}); |
| 547 | 547 | return; |
| 548 | 548 | }; |
| 549 | 549 | |
| 550 | 550 | try stdout_stream.print("Available features for {}:\n", .{@tagName(arch)}); |
| 551 | 551 | |
| 552 | | const features = std.target.getFeaturesForArch(arch); |
| 552 | const features = arch.allFeaturesList(); |
| 553 | 553 | |
| 554 | 554 | var longest_len: usize = 0; |
| 555 | 555 | for (features) |feature| { |
| ... | ... | @@ -568,7 +568,7 @@ fn printFeaturesForArch(arch_name: []const u8, show_dependencies: bool) !void { |
| 568 | 568 | |
| 569 | 569 | try stdout_stream.print(" - {}\n", .{feature.description}); |
| 570 | 570 | |
| 571 | | if (show_dependencies and feature.dependencies.len > 0) { |
| 571 | if (show_dependencies and feature.dependencies != 0) { |
| 572 | 572 | for (feature.dependencies) |dependency| { |
| 573 | 573 | try stdout_stream.print(" {}\n", .{dependency.name}); |
| 574 | 574 | } |
| ... | ... | @@ -622,7 +622,7 @@ fn printCpusForArch(arch_name: []const u8, show_dependencies: bool) !void { |
| 622 | 622 | |
| 623 | 623 | const Stage2CpuFeatures = struct { |
| 624 | 624 | allocator: *mem.Allocator, |
| 625 | | cpu_features: Target.CpuFeatures, |
| 625 | cpu_features: Target.Cross.CpuFeatures, |
| 626 | 626 | |
| 627 | 627 | llvm_cpu_name: ?[:0]const u8, |
| 628 | 628 | llvm_features_str: ?[:0]const u8, |