std.os.linux: delete unnecessary @compileError

Without this, it already fails to compile with a sufficiently helpful
error message.
This commit is contained in:
Andrew Kelley 2025-11-29 07:38:33 -08:00
parent 39ac40209b
commit 9e981c3ae5

View file

@ -1748,9 +1748,7 @@ pub fn settimeofday(tv: *const timeval, tz: *const timezone) usize {
} }
pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize { pub fn nanosleep(req: *const timespec, rem: ?*timespec) usize {
if (native_arch == .riscv32) { return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
@compileError("No nanosleep syscall on this architecture.");
} else return syscall2(.nanosleep, @intFromPtr(req), @intFromPtr(rem));
} }
pub fn pause() usize { pub fn pause() usize {