| ... | ... | @@ -38,15 +38,15 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 38 | 38 | \\pub const zig_version_string = "{s}"; |
| 39 | 39 | \\pub const zig_backend = std.builtin.CompilerBackend.{p_}; |
| 40 | 40 | \\ |
| 41 | | \\pub const output_mode = std.builtin.OutputMode.{p_}; |
| 42 | | \\pub const link_mode = std.builtin.LinkMode.{p_}; |
| 41 | \\pub const output_mode: std.builtin.OutputMode = .{p_}; |
| 42 | \\pub const link_mode: std.builtin.LinkMode = .{p_}; |
| 43 | 43 | \\pub const is_test = {}; |
| 44 | 44 | \\pub const single_threaded = {}; |
| 45 | | \\pub const abi = std.Target.Abi.{p_}; |
| 45 | \\pub const abi: std.Target.Abi = .{p_}; |
| 46 | 46 | \\pub const cpu: std.Target.Cpu = .{{ |
| 47 | 47 | \\ .arch = .{p_}, |
| 48 | 48 | \\ .model = &std.Target.{p_}.cpu.{p_}, |
| 49 | | \\ .features = std.Target.{p_}.featureSet(&[_]std.Target.{p_}.Feature{{ |
| 49 | \\ .features = std.Target.{p_}.featureSet(&.{{ |
| 50 | 50 | \\ |
| 51 | 51 | , .{ |
| 52 | 52 | build_options.version, |
| ... | ... | @@ -60,7 +60,6 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 60 | 60 | std.zig.fmtId(generic_arch_name), |
| 61 | 61 | std.zig.fmtId(target.cpu.model.name), |
| 62 | 62 | std.zig.fmtId(generic_arch_name), |
| 63 | | std.zig.fmtId(generic_arch_name), |
| 64 | 63 | }); |
| 65 | 64 | |
| 66 | 65 | for (target.cpu.arch.allFeaturesList(), 0..) |feature, index_usize| { |
| ... | ... | @@ -73,7 +72,7 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 73 | 72 | try buffer.writer().print( |
| 74 | 73 | \\ }}), |
| 75 | 74 | \\}}; |
| 76 | | \\pub const os = std.Target.Os{{ |
| 75 | \\pub const os: std.Target.Os = .{{ |
| 77 | 76 | \\ .tag = .{p_}, |
| 78 | 77 | \\ .version_range = .{{ |
| 79 | 78 | , |
| ... | ... | @@ -196,13 +195,13 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 196 | 195 | |
| 197 | 196 | if (target.dynamic_linker.get()) |dl| { |
| 198 | 197 | try buffer.writer().print( |
| 199 | | \\ .dynamic_linker = std.Target.DynamicLinker.init("{s}"), |
| 198 | \\ .dynamic_linker = .init("{s}"), |
| 200 | 199 | \\}}; |
| 201 | 200 | \\ |
| 202 | 201 | , .{dl}); |
| 203 | 202 | } else { |
| 204 | 203 | try buffer.appendSlice( |
| 205 | | \\ .dynamic_linker = std.Target.DynamicLinker.none, |
| 204 | \\ .dynamic_linker = .none, |
| 206 | 205 | \\}; |
| 207 | 206 | \\ |
| 208 | 207 | ); |
| ... | ... | @@ -216,8 +215,8 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 216 | 215 | const link_libc = opts.link_libc; |
| 217 | 216 | |
| 218 | 217 | try buffer.writer().print( |
| 219 | | \\pub const object_format = std.Target.ObjectFormat.{p_}; |
| 220 | | \\pub const mode = std.builtin.OptimizeMode.{p_}; |
| 218 | \\pub const object_format: std.Target.ObjectFormat = .{p_}; |
| 219 | \\pub const mode: std.builtin.OptimizeMode = .{p_}; |
| 221 | 220 | \\pub const link_libc = {}; |
| 222 | 221 | \\pub const link_libcpp = {}; |
| 223 | 222 | \\pub const have_error_return_tracing = {}; |
| ... | ... | @@ -227,7 +226,7 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 227 | 226 | \\pub const position_independent_code = {}; |
| 228 | 227 | \\pub const position_independent_executable = {}; |
| 229 | 228 | \\pub const strip_debug_info = {}; |
| 230 | | \\pub const code_model = std.builtin.CodeModel.{p_}; |
| 229 | \\pub const code_model: std.builtin.CodeModel = .{p_}; |
| 231 | 230 | \\pub const omit_frame_pointer = {}; |
| 232 | 231 | \\ |
| 233 | 232 | , .{ |
| ... | ... | @@ -248,7 +247,7 @@ pub fn append(opts: @This(), buffer: *std.ArrayList(u8)) Allocator.Error!void { |
| 248 | 247 | |
| 249 | 248 | if (target.os.tag == .wasi) { |
| 250 | 249 | try buffer.writer().print( |
| 251 | | \\pub const wasi_exec_model = std.builtin.WasiExecModel.{p_}; |
| 250 | \\pub const wasi_exec_model: std.builtin.WasiExecModel = .{p_}; |
| 252 | 251 | \\ |
| 253 | 252 | , .{std.zig.fmtId(@tagName(opts.wasi_exec_model))}); |
| 254 | 253 | } |