Skip to content

Commit

Permalink
Use gmake by default on all DragonFlyBSD, FreeBSD or Solaris targets (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelUrankar authored Mar 17, 2020
1 parent 311d70c commit 287bc07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ impl Build {
}

fn cmd_make(&self) -> Command {
match &self.host.as_ref().expect("HOST dir not set")[..] {
"x86_64-unknown-dragonfly" => Command::new("gmake"),
"x86_64-unknown-freebsd" => Command::new("gmake"),
"x86_64-sun-solaris" => Command::new("gmake"),
_ => Command::new("make"),
let host = &self.host.as_ref().expect("HOST dir not set")[..];
if host.contains("dragonfly") || host.contains("freebsd") || host.contains("solaris") {
Command::new("gmake")
} else {
Command::new("make")
}
}

Expand Down

0 comments on commit 287bc07

Please sign in to comment.