From 582db68a157520a0cf7777807f466d1f6a2e31e7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 3 Mar 2020 12:01:17 -0500 Subject: [PATCH] remove superfluous comptime keyword --- lib/std/os/linux.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 238d60536..de2ff5871 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -6,7 +6,7 @@ // provide `rename` when only the `renameat` syscall exists. // * Does not support POSIX thread cancellation. const std = @import("../std.zig"); -const builtin = @import("builtin"); +const builtin = std.builtin; const assert = std.debug.assert; const maxInt = std.math.maxInt; const elf = std.elf; @@ -42,9 +42,9 @@ pub fn getauxval(index: usize) usize { // Some architectures require 64bit parameters for some syscalls to be passed in // even-aligned register pair const require_aligned_register_pair = // - comptime builtin.arch.isMIPS() or - comptime builtin.arch.isARM() or - comptime builtin.arch.isThumb(); + std.Target.current.cpu.arch.isMIPS() or + std.Target.current.cpu.arch.isARM() or + std.Target.current.cpu.arch.isThumb(); /// Get the errno from a syscall return value, or 0 for no error. pub fn getErrno(r: usize) u12 {