diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-13 11:51:58 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-15 19:06:39 -0700 |
| commit | 798ad631f3f9836de663bc6c728b415e0a13528f (patch) | |
| tree | 345fe3987200eedf7e00c905dc9e5e98f29ebaa9 /lib/std/start.zig | |
| parent | 6dba9bc6fc6741e51af86f71e3057cffed7406a6 (diff) | |
| download | zig-798ad631f3f9836de663bc6c728b415e0a13528f.tar.gz zig-798ad631f3f9836de663bc6c728b415e0a13528f.zip | |
stage2 start.zig: slight simplification
fewer required language features to allow this to work
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index 77fa820a87..acf7ed5adb 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -11,8 +11,8 @@ const builtin = @import("builtin"); const assert = std.debug.assert; const uefi = std.os.uefi; const tlcsprng = @import("crypto/tlcsprng.zig"); -const native_arch = std.Target.current.cpu.arch; -const native_os = std.Target.current.os.tag; +const native_arch = builtin.cpu.arch; +const native_os = builtin.os.tag; var argc_argv_ptr: [*]usize = undefined; @@ -80,7 +80,7 @@ fn _start2() callconv(.Naked) noreturn { } fn exit2(code: u8) noreturn { - switch (native_arch) { + switch (builtin.stage2_arch) { .x86_64 => { asm volatile ("syscall" : |
