diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-07 19:37:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-07 19:37:05 -0700 |
| commit | 396eb730e5133c150134bb675ee43d5323e2bb6d (patch) | |
| tree | bbaf10846313527b723e390aa7c72ebc9530a1ad /src | |
| parent | ae16c1d0835b517cb858cb9615888cdab1e351c5 (diff) | |
| parent | ec7f7131473a5648703c48422b449c12ed4524aa (diff) | |
| download | zig-396eb730e5133c150134bb675ee43d5323e2bb6d.tar.gz zig-396eb730e5133c150134bb675ee43d5323e2bb6d.zip | |
Merge pull request #12228 from nektro/stage2-arch
remove 'builtin.stage2_arch', Sema is smart enough now
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compilation.zig | 3 | ||||
| -rw-r--r-- | src/stage1/codegen.cpp | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 17ffe356a3..d3816e542c 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4763,8 +4763,6 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: Allocator) Alloca \\/// feature detection (i.e. with `@hasDecl` or `@hasField`) over version checks. \\pub const zig_version = std.SemanticVersion.parse("{s}") catch unreachable; \\pub const zig_backend = std.builtin.CompilerBackend.{}; - \\/// Temporary until self-hosted supports the `cpu.arch` value. - \\pub const stage2_arch: std.Target.Cpu.Arch = .{}; \\ \\pub const output_mode = std.builtin.OutputMode.{}; \\pub const link_mode = std.builtin.LinkMode.{}; @@ -4779,7 +4777,6 @@ pub fn generateBuiltinZigSource(comp: *Compilation, allocator: Allocator) Alloca , .{ build_options.version, std.zig.fmtId(@tagName(zig_backend)), - std.zig.fmtId(@tagName(target.cpu.arch)), std.zig.fmtId(@tagName(comp.bin_file.options.output_mode)), std.zig.fmtId(@tagName(comp.bin_file.options.link_mode)), comp.bin_file.options.is_test, diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index 8b88446295..7010e736dc 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -10076,7 +10076,6 @@ Buf *codegen_generate_builtin_source(CodeGen *g) { buf_appendf(contents, "pub const single_threaded = %s;\n", bool_to_str(g->is_single_threaded)); buf_appendf(contents, "pub const abi = std.Target.Abi.%s;\n", cur_abi); buf_appendf(contents, "pub const cpu = std.Target.Cpu.baseline(.%s);\n", cur_arch); - buf_appendf(contents, "pub const stage2_arch: std.Target.Cpu.Arch = .%s;\n", cur_arch); buf_appendf(contents, "pub const os = std.Target.Os.Tag.defaultVersionRange(.%s, .%s);\n", cur_os, cur_arch); buf_appendf(contents, "pub const target = std.Target{\n" |
