| ... | ... | @@ -2848,11 +2848,7 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: *Allocator) ![]u8 |
| 2848 | 2848 | const index = @intCast(std.Target.Cpu.Feature.Set.Index, index_usize); |
| 2849 | 2849 | const is_enabled = target.cpu.features.isEnabled(index); |
| 2850 | 2850 | if (is_enabled) { |
| 2851 | | // TODO some kind of "zig identifier escape" function rather than |
| 2852 | | // unconditionally using @"" syntax |
| 2853 | | try buffer.appendSlice(" .@\""); |
| 2854 | | try buffer.appendSlice(feature.name); |
| 2855 | | try buffer.appendSlice("\",\n"); |
| 2851 | try buffer.writer().print(" .{},\n", .{std.zig.fmtId(feature.name)}); |
| 2856 | 2852 | } |
| 2857 | 2853 | } |
| 2858 | 2854 | |