Skip to content

Commit 555a1a0

Browse files
committed
fix: gate current_rss_kb with #[cfg(unix)] to fix Windows build
The function uses `ps` and is only called from the unix-gated run_cli_timeout_probe, so it is dead code on Windows.
1 parent fe3bbd7 commit 555a1a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

xtask/src/leak_check.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ fn run_leaks(pid: u32) -> anyhow::Result<String> {
335335
Ok(combined)
336336
}
337337

338+
#[cfg(unix)]
338339
fn current_rss_kb(pid: u32) -> anyhow::Result<u64> {
339340
let output = Command::new("ps")
340341
.arg("-o")

0 commit comments

Comments
 (0)