aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorMeghan Denny <hello@nektro.net>2022-07-24 19:05:20 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-08-07 16:07:08 -0700
commit0879cbeed262415645fe388e1991c7df866f7064 (patch)
treed4cf3f46f70bca8fc0f781f72af07490fbb6fe3f /lib/std/start.zig
parentae16c1d0835b517cb858cb9615888cdab1e351c5 (diff)
downloadzig-0879cbeed262415645fe388e1991c7df866f7064.tar.gz
zig-0879cbeed262415645fe388e1991c7df866f7064.zip
remove 'builtin.stage2_arch', Sema is smart enough now
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index 8ea261be2d..e6a7b7991a 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -131,7 +131,7 @@ fn wWinMainCRTStartup2() callconv(.C) noreturn {
fn exit2(code: usize) noreturn {
switch (native_os) {
- .linux => switch (builtin.stage2_arch) {
+ .linux => switch (builtin.cpu.arch) {
.x86_64 => {
asm volatile ("syscall"
:
@@ -175,7 +175,7 @@ fn exit2(code: usize) noreturn {
else => @compileError("TODO"),
},
// exits(0)
- .plan9 => switch (builtin.stage2_arch) {
+ .plan9 => switch (builtin.cpu.arch) {
.x86_64 => {
asm volatile (
\\push $0