Skip to content

Commit

Permalink
Do not check for --jobserver-fds on windows
Browse files Browse the repository at this point in the history
Since the manual specifies that only `--jobsewrver-auth` will be used
and windows does not have the concept of fds anyway.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Nov 6, 2023
1 parent 34ef631 commit b06b920
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/job_token/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ impl JobServerClient {
let s = var
.to_str()?
.split_ascii_whitespace()
.filter_map(|arg| {
arg.strip_prefix("--jobserver-fds=")
.or_else(|| arg.strip_prefix("--jobserver-auth="))
})
.filter_map(|arg| arg.strip_prefix("--jobserver-auth="))
.find(|s| !s.is_empty())?;

let name = CString::new(s).ok()?;
Expand Down

0 comments on commit b06b920

Please sign in to comment.