From 9e981c3ae517738eacc0456632651aae5626d109 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 29 Nov 2025 07:38:33 -0800 Subject: [PATCH] std.os.linux: delete unnecessary `@compileError` Without this, it already fails to compile with a sufficiently helpful error message. --- lib/std/os/linux.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 2029356a66..a41ead5485 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -1748,9 +1748,7 @@ pub fn settimeofday(tv: *const timeval, tz: *const timezone) usize { } pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize { - if (native_arch == .riscv32) { - @compileError("No nanosleep syscall on this architecture."); - } else return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem)); + return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem)); } pub fn pause() usize {