From cde0a36b244ee0f029fbf05cd719f33788e4ec83 Mon Sep 17 00:00:00 2001 From: "gominimal-aw-bot[bot]" <281738952+gominimal-aw-bot[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 07:46:48 +0000 Subject: [PATCH] fix(minimald): cast clock step seconds to c_long not deprecated time_t clock_step_target cast its tv_sec argument to nix's TimeSpec::new via libc::time_t, which libc deprecates on musl targets (it becomes 64-bit in musl 1.2.0). The just test-cross recipe runs cross clippy against *-unknown-linux-musl with -D warnings, so the deprecation is promoted to a hard error and the build never reaches the test step. No CI lane clippies musl, so every lane stays green while the macOS cross gate goes red. Cast to libc::c_long instead, matching the adjacent tv_nsec argument. On the 64-bit musl targets test-cross builds, c_long and time_t are both i64, so the stepped time value is unchanged. --- crates/minimald/src/guest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/minimald/src/guest.rs b/crates/minimald/src/guest.rs index a376f2d4b..057206d6a 100644 --- a/crates/minimald/src/guest.rs +++ b/crates/minimald/src/guest.rs @@ -722,7 +722,7 @@ fn clock_step_target(host_ns: u64, guest_ns: u64) -> Option