| ... | @@ -3078,7 +3078,10 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: *Allocator) Alloc | ... | @@ -3078,7 +3078,10 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: *Allocator) Alloc |
| 3078 | \\/// Zig version. When writing code that supports multiple versions of Zig, prefer | 3078 | \\/// Zig version. When writing code that supports multiple versions of Zig, prefer |
| 3079 | \\/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks. | 3079 | \\/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks. |
| 3080 | \\pub const zig_version = try std.SemanticVersion.parse("{s}"); | 3080 | \\pub const zig_version = try std.SemanticVersion.parse("{s}"); |
| | 3081 | \\/// Temporary until self-hosted is feature complete. |
| 3081 | \\pub const zig_is_stage2 = {}; | 3082 | \\pub const zig_is_stage2 = {}; |
| | 3083 | \\/// Temporary until self-hosted supports the `cpu.arch` value. |
| | 3084 | \\pub const stage2_arch: std.Target.Cpu.Arch = .{}; |
| 3082 | \\ | 3085 | \\ |
| 3083 | \\pub const output_mode = std.builtin.OutputMode.{}; | 3086 | \\pub const output_mode = std.builtin.OutputMode.{}; |
| 3084 | \\pub const link_mode = std.builtin.LinkMode.{}; | 3087 | \\pub const link_mode = std.builtin.LinkMode.{}; |
| ... | @@ -3093,6 +3096,7 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: *Allocator) Alloc | ... | @@ -3093,6 +3096,7 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: *Allocator) Alloc |
| 3093 | , .{ | 3096 | , .{ |
| 3094 | build_options.version, | 3097 | build_options.version, |
| 3095 | !use_stage1, | 3098 | !use_stage1, |
| | 3099 | std.zig.fmtId(@tagName(target.cpu.arch)), |
| 3096 | std.zig.fmtId(@tagName(comp.bin_file.options.output_mode)), | 3100 | std.zig.fmtId(@tagName(comp.bin_file.options.output_mode)), |
| 3097 | std.zig.fmtId(@tagName(comp.bin_file.options.link_mode)), | 3101 | std.zig.fmtId(@tagName(comp.bin_file.options.link_mode)), |
| 3098 | comp.bin_file.options.is_test, | 3102 | comp.bin_file.options.is_test, |