Skip to content

Commit 287bc07

Browse files
Use gmake by default on all DragonFlyBSD, FreeBSD or Solaris targets (#53)
1 parent 311d70c commit 287bc07

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ impl Build {
5151
}
5252

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

0 commit comments

Comments
 (0)