Skip to content

Commit

Permalink
Merge pull request #26 from glandium/j-flag
Browse files Browse the repository at this point in the history
Set the -j flag in make flags on all platforms
  • Loading branch information
alexcrichton authored Jul 20, 2020
2 parents e6701fe + 9bc9b88 commit b9bdabb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ impl Client {
// Older implementations of make use `--jobserver-fds` and newer
// implementations use `--jobserver-auth`, pass both to try to catch
// both implementations.
let value = format!("--jobserver-fds={0} --jobserver-auth={0}", arg);
let value = format!("-j --jobserver-fds={0} --jobserver-auth={0}", arg);
cmd.env("CARGO_MAKEFLAGS", &value);
self.inner.configure(cmd);
}
Expand Down
2 changes: 1 addition & 1 deletion src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl Client {
}

pub fn string_arg(&self) -> String {
format!("{},{} -j", self.read.as_raw_fd(), self.write.as_raw_fd())
format!("{},{}", self.read.as_raw_fd(), self.write.as_raw_fd())
}

pub fn configure(&self, cmd: &mut Command) {
Expand Down

0 comments on commit b9bdabb

Please sign in to comment.