commit 28a89b9ebc471fa65815c8061dce979d25f3e499 (tree)
parent 22f51f2f7dfa7ca985648c414b25d5842d0c2732
Author: Sébastien Marie <semarie@online.fr>
Date: Wed, 19 May 2021 06:26:52 +0000
openbsd: convert builtin.arch to builtin.target.cpu.arch
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/os/bits/openbsd.zig b/lib/std/os/bits/openbsd.zig
@@ -808,7 +808,7 @@ comptime {
std.debug.assert(@sizeOf(siginfo_t) == 136);
}
-pub usingnamespace switch (builtin.arch) {
+pub usingnamespace switch (builtin.target.cpu.arch) {
.x86_64 => struct {
pub const ucontext_t = extern struct {
sc_rdi: c_long,
@@ -985,7 +985,7 @@ pub const EPROTO = 95; // Protocol error
pub const ELAST = 95; // Must equal largest errno
-const _MAX_PAGE_SHIFT = switch (builtin.arch) {
+const _MAX_PAGE_SHIFT = switch (builtin.target.cpu.arch) {
.i386 => 12,
.sparcv9 => 13,
};